Add paragraph indentation and hfill

This commit is contained in:
gloamxun committed 2026-10-19 12:43:30 +08:00
1 parent bad477fbee
commit e44d4c8669
11 files changed
+362 -42

No files matched your search

+13
View File
@@ -194,6 +194,19 @@ impl<S> Command<S> {
| Getters::Font(_, _) => false,
}
}
/// Returns the static register index when this command points at one.
pub fn static_index(&self) -> Option<usize> {
match &self.index_resolver {
Some(IndexResolver::Static(index)) => Some(index.0),
_ => None,
}
}
/// Returns true when this command reads and writes glue.
pub fn is_glue(&self) -> bool {
matches!(self.getters, Getters::Glue(_, _))
}
}
impl<S: TexlangState> Command<S> {