Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the original PR, a
pre-wrap
was considered here. Should we use it explicitly instead of removing the whole thing? AFAIK thepre
tag's defaultwhite-space
value ispre
. cc @scruffian @kjellrThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use
prep-wrap
so it's explicit and matches what is in the editor.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the richtext editor forces a wrap regardless of what we do here:
Currently in the this PR, removing the rule (and defaulting to
whitespace: pre
) keeps long words in the same line, and scrolls them horizontally if necessary:If we did go with
pre-wrap
, very long words would wrap, though not exactly the same way they do in the editor. In my testing, they wrap onto their own single line, but then don't continue wrapping beyond there, instead forcing a horizontal scroll:So given that, I'd recommend
pre-wrap
since it's closer to what the editor does in the near term. But the better solution would be to try to get the editor to mimicwhitespace: pre
and stop wrapping the text.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kjellr Cool. I'm happy to help with that 👍