Add paragraph indentation and hfill
This commit is contained in:
1 parent
bad477fbee
commit
e44d4c8669
11 files changed
+362
-42
No files matched your search
Vendored
+13
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user