Apply pdfTeX line box dimensions and restore output penalties
This commit is contained in:
1 parent
7f51f01bd4
commit
fb557c09c6
13 files changed
+151
-14
No files matched your search
@@ -500,7 +500,7 @@ impl Default for VerticalBuilder {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
nodes: Vec::new(),
|
||||
prev_depth: -1000 * 65536,
|
||||
prev_depth: super::parameters::IGNORE_DEPTH,
|
||||
previous_lines: 0,
|
||||
tail_path: Vec::new(),
|
||||
}
|
||||
@@ -526,7 +526,7 @@ impl VerticalBuilder {
|
||||
|
||||
pub fn append_box(&mut self, node: NativeVerticalNode, state: &State) -> Result<(), String> {
|
||||
let (_, height, depth) = node.dimensions().expect("box or line");
|
||||
if self.prev_depth > -1000 * 65536 {
|
||||
if self.prev_depth > state.ignored_depth() {
|
||||
let mut label = Parameter::Baselineskip;
|
||||
let mut g = state.parameter(label).glue();
|
||||
let gap = g.width as i64 - self.prev_depth as i64 - height;
|
||||
|
||||
Reference in new issue
Block a user