Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Use pre instead of pre-line for code whitespace. #144

Merged
merged 2 commits into from
Jul 27, 2020

Conversation

mbrandonw
Copy link
Contributor

This fixes the issue I filed #129

I think you want to use white-space: pre here in order to preserve spaces. pre-line will collapse the spaces:

Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks

Another option is pre-wrap if you want long lines to wrap.

@mattt
Copy link
Contributor

mattt commented Jul 27, 2020

This looks great, @mbrandonw. Thank you for submitting this PR and for your patience as I ramp back up to working on swift-doc on a more regular basis. I look forward to cutting a new release by Friday with this fix and a whole raft of improvements.

@mattt mattt merged commit b815728 into SwiftDocOrg:master Jul 27, 2020
@mbrandonw
Copy link
Contributor Author

@mattt that is awesome to hear and no worries! really excited for the future of this project and we will be adding it to TCA shortly!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants