Fit native paragraph endings using preceding line glue

This commit is contained in:
gloamxun committed 2026-11-28 11:50:07 +08:00
1 parent e72104eab3
commit 11fd66713b
10 files changed
+247 -23

No files matched your search

@@ -1292,6 +1292,7 @@ impl Default for State {
| Parameter::Savingvdiscards
| Parameter::Ignoreprimitiveerror
| Parameter::TeXXeTstate
| Parameter::Lastlinefit
) || Parameter::XETEX.contains(p) {
continue;
}
@@ -1543,6 +1544,7 @@ impl State {
Parameter::Tracingassigns,
Parameter::Savingvdiscards,
Parameter::Ignoreprimitiveerror,
Parameter::Lastlinefit,
] {
self.commands.insert(
CommandName::Control(parameter.name()),
@@ -1793,6 +1795,15 @@ impl State {
}
}
pub(super) fn restore_legacy_last_line_fit(&mut self) {
if self.profile == Profile::EtexBootstrap {
let parameter = Parameter::Lastlinefit;
self.commands
.entry(CommandName::Control(parameter.name()))
.or_insert(Meaning::Parameter(parameter));
}
}
pub fn is_initex(&self) -> bool {
self.initex
}