Repository navigation
Commit b77ed69
committed
Keep LF line endings in the appendix BibTeX block
Pandoc writes its biblatex output with CRLF on Windows. innerHTML went
through the HTML parser, which normalizes CRLF to LF; textContent keeps
the carriage returns, so the rendered page had CRLF lines inside the
BibTeX block and LF everywhere else. Browsers normalize again on load,
so display and copy were unaffected, but the output file bytes changed.
normalizeNewlines splits on the same `\r\n?|\n` set as the HTML parser,
so the block's text is now byte-identical to the innerHTML result for
any BibTeX without `&` entity sequences: rendering the 19 citation
smoke-all fixtures with and without the change differs only in the two
entity-literal titles.1 parent 6f5dd9c commit b77ed69
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
530 | | - | |
| 531 | + | |
531 | 532 | | |
532 | 533 | | |
533 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
0 commit comments