Replies: 3 comments 2 replies
-
I just started playing around with SugarCube 2 and found the current line break behavior very weird, being used to HTML and Markdown. I currently have to configure my editor to turn on line wrapping to be able to write longer paragraphs which feels wrong. Ideally I'd see the same behavior as Markdown where a single line break is ignored and multiple consecutive line breaks creates a new As an example: This is some text.
I like this text.
This is a new paragraph.
This is another paragraph, but with more spacing. Would translate to: <p> This is some text. I like this text. </p>
<p> This is a new paragraph. </p>
<br>
<p> This is another paragraph, but with more spacing. </p> |
Beta Was this translation helpful? Give feedback.
-
Personally I like the idea of suppress the auto-conversion of single line line-breaks, and while the note; I don't agree producing an outcome that mixes |
Beta Was this translation helpful? Give feedback.
-
If by current style you mean the v1/v2 behavior, then no. The v3 behavior will be a clean break, moving the action to the renderer where it's always belonged. |
Beta Was this translation helpful? Give feedback.
-
What are everyone's thoughts on removing most line-break processing? In other words, instead of having to use line continuations or one of the no-break features, the default would be to not convert most newlines into line-breaks in the first place.
What I'm currently imagining is:
For example, the following text:
Currently transforms into the following in SCv2:
What I'm thinking about for SCv3 is:
Or, ideally (but don't count these chickens):
SEE: Issue #18 for prior discussion on whitespace handling.
Beta Was this translation helpful? Give feedback.
All reactions