diff options
Diffstat (limited to 'src/library/flow.rs')
| -rw-r--r-- | src/library/flow.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/library/flow.rs b/src/library/flow.rs index 38f1b0e7..227a7a35 100644 --- a/src/library/flow.rs +++ b/src/library/flow.rs @@ -190,11 +190,7 @@ impl<'a> FlowLayouter<'a> { let aligns = Spec::new( // For non-expanding paragraphs it is crucial that we align the // whole paragraph as it is itself aligned. - if node.is::<ParNode>() { - styles.get(ParNode::ALIGN) - } else { - Align::Left - }, + styles.get(ParNode::ALIGN), // Vertical align node alignment is respected by the flow node. node.downcast::<AlignNode>() .and_then(|aligned| aligned.aligns.y) |
