Commit 1dbd53e
committed
Fix RTF parser splitting paragraphs at source line boundaries
The rtf_parser lexer only treats \n as a token delimiter, leaving \r
from \r\n line endings embedded in PlainText tokens. These stray
carriage returns caused visible line breaks mid-word in the output.
Strip \r from the source before lexing.1 parent d62aa3b commit 1dbd53e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments