Report TeX outputpenalty for glue breaks

This commit is contained in:
gloamxun committed 2026-10-23 14:22:34 +08:00
1 parent 94559ee431
commit 8007fd1b6c
5 files changed
+31 -8

No files matched your search

+2 -2
View File
@@ -1933,7 +1933,7 @@ impl Engine {
page.insertions = insertions.into_values().collect();
page.seal_in_place();
pages.push(page);
page_penalties.push(0);
page_penalties.push(10_000);
page_depths.push(0);
page_stretches.push(0);
page_fil_stretches.push(0);
@@ -1971,7 +1971,7 @@ impl Engine {
vsize: document.page_goal,
top_skip: document.top_skip,
max_depth: document.max_depth,
output_penalty: page_penalties.get(index).copied().unwrap_or(0),
output_penalty: page_penalties.get(index).copied().unwrap_or(10_000),
insertion_counts,
insertion_dimens,
insertion_skips,