Files
craft-libs/crates
Simon Koch-Sultan b974484e03 craft-latex: paragraph breaks survive comments, control words and CR line ends (wordcraft#6350, #6365, #6366)
Three ways the lexer lost a blank line, so two paragraphs ran together:

- A comment took its line end with it, so a blank line right after it
  read as a single line end (wordcraft#6350).
- A control word took the spaces and one line end after it, so a blank
  line right after `\relax` at a line end read as a single line end
  (wordcraft#6366).
- Only LF was a line end. TeX ends a line at LF, CR or CRLF. With CR line
  ends every paragraph break was lost, and a comment or a verbatim
  environment ran to the end of the file and dropped the rest of it; with
  CR or CRLF a control word kept the line end after it as a space
  (wordcraft#6365, #6373, #6374, #6375). The lexer now reads every line
  end as LF.

Each symptom has its own test. The CR fix needs the control-word fix
before it: CRLF files read a blank line after a control word correctly
only because the CR stopped the control word from taking the line end.

Port of storytold/wordcraft#6387, whose files moved here with the LaTeX
reader.
2026-11-16 12:18:30 -05:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…