Skip to content

Conversation

oyvind-stenhaug
Copy link

When there are multiple contiguous whitespace characters (such as '\n\n'), they are normalized to a single space (' ').

How about also normalizing in the same way (i.e. to a space) when a whitespace character appears as an isolated instance? (E.g. '\n' to ' '.) This gives a result that seems a bit more predictable and easy to process further.

@stevenvachon
Copy link
Owner

These all render the same outside of a <pre>:

  • \n
  • \n\n

@stevenvachon
Copy link
Owner

Oh I see now. I'll think a bit more and get back to you

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

Successfully merging this pull request may close these issues.

2 participants