Honour explicit par paragraph breaks

An explicit \par inside a block stayed in the paragraph text and could leak as
an unsupported command. The final body pass now turns a standalone \par token
(not a \par... command prefix) into a blank line, so the block splitter starts a
new paragraph at that point.

A unit test feeds "First line.\par Second line." through geometry_and_body and
checks it splits into two paragraphs.
This commit is contained in:
gloamxun committed 2026-10-27 02:56:28 +08:00
1 parent 1227d82f02
commit dc9428e87e
4 files changed
+40 -6

No files matched your search

+2 -2
View File
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
cargo test --workspace --offline
```
The workspace currently passes **1037 tests**:
The workspace currently passes **1038 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 408 |
| engine binary unit | 409 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |