Execute and render TeX--XeT direction spans in native layouts
This commit is contained in:
1 parent
a93d1bb902
commit
22e3ba993d
17 files changed
+460
-54
No files matched your search
@@ -776,7 +776,7 @@ impl Executor {
|
||||
} else {
|
||||
b.nodes
|
||||
};
|
||||
boxes::hpack(nodes, frame.spec, frame.span, &self.state)
|
||||
boxes::hpack_with_direction_report(nodes, frame.spec, frame.span, &self.state)
|
||||
} else {
|
||||
boxes::vpack(
|
||||
self.vertical.take_nodes(),
|
||||
@@ -785,8 +785,17 @@ impl Executor {
|
||||
frame.kind,
|
||||
frame.span,
|
||||
)
|
||||
.map(|packed| (packed, (0, 0)))
|
||||
};
|
||||
let b = result.map_err(|e| self.error(e, frame.span))?;
|
||||
let (b, (missing, extra)) = result.map_err(|e| self.error(e, frame.span))?;
|
||||
if missing != 0 || extra != 0 {
|
||||
let line = self.error("", self.current).line;
|
||||
files
|
||||
.observe_message(&format!(
|
||||
"\n\\endL or \\endR problem ({missing} missing, {extra} extra) detected at line {line}\n"
|
||||
))
|
||||
.map_err(|error| self.error(error, self.current))?;
|
||||
}
|
||||
self.diagnose_box(&b, files)?;
|
||||
self.account_box(&b)?;
|
||||
self.paragraph = frame.paragraph;
|
||||
|
||||
Reference in new issue
Block a user