Open martin-walls opened 5 months ago
Hey there!
Oh that's a problem alright, we're possibly going to need logic that checks if breaking the line at a point starts a new line with a number, -
or similar ast breaking characters.
In the meantime I would advise disabling line breaking
Describe the bug When a sentence ends with a number immediately before the period, this can get wrapped onto a new line. This happens when the number is exactly at the line length limit. When this happens, the Typst compiler interprets it as the start of a numbered list, and therefore the output for the rest of the paragraph is incorrect.
To Reproduce Minimal example:
With the default settings, Typstfmt formats this as
Expected output:
Actual output: