Cover tolerance-10000 line breaking with pdfLaTeX

This commit is contained in:
gloamxun committed 2026-10-23 14:43:57 +08:00
1 parent 2b2ccd511c
commit 2d73486dd1
3 files changed
+17 -4

No files matched your search

+11
View File
@@ -408,6 +408,17 @@ fn pretolerance_skips_hyphenation_like_tex() {
});
}
/// `\tolerance=10000` accepts arbitrarily bad underfull lines in the
/// tolerance pass, so the breaker must consider very loose breaks.
#[test]
fn tolerance_10000_matches_pdftex() {
for width in [100, 120, 150, 180, 200, 240] {
compare_fixture_with(WORDS, width, "\\tolerance=10000 ", |style| {
style.tolerance = 10_000;
});
}
}
/// `\hyphenpenalty=10000` makes hyphenation illegal, so the final pass keeps
/// overfull lines instead.
#[test]