Cover tolerance-10000 line breaking with pdfLaTeX
This commit is contained in:
1 parent
2b2ccd511c
commit
2d73486dd1
3 files changed
+17
-4
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user