Handle cleardoublepage and column switches

\cleardoublepage was unsupported and \onecolumn/\twocolumn leaked into the
text. The block splitter now treats \cleardoublepage like \newpage/\clearpage
(it sets the pending page break) and consumes the two column switches, since
the engine lays documents out in a single column.

A test alternates the three commands around First/Second/Third, checks at least
two pages, all three texts present, and no leaked commands or warnings.
This commit is contained in:
gloamxun committed 2026-10-27 02:21:01 +08:00
1 parent c25c38f16a
commit 0a4bc0ade5
4 files changed
+44 -7

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 **1026 tests**:
The workspace currently passes **1027 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 397 |
| engine binary unit | 398 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |