summaryrefslogtreecommitdiff
path: root/src/layout/tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/tree.rs')
-rw-r--r--src/layout/tree.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/layout/tree.rs b/src/layout/tree.rs
index 2edec631..f6a8f408 100644
--- a/src/layout/tree.rs
+++ b/src/layout/tree.rs
@@ -58,16 +58,11 @@ impl<'a, 'p> TreeLayouter<'a, 'p> {
}
fn layout_space(&mut self) {
- if !self.flex.run_is_empty() {
- self.flex.add_primary_space(word_spacing(&self.style), true);
- }
+ self.flex.add_primary_space(word_spacing(&self.style), true);
}
fn layout_paragraph(&mut self) -> LayoutResult<()> {
- if !self.flex.run_is_empty() {
- self.flex.add_secondary_space(paragraph_spacing(&self.style), true)?;
- }
- Ok(())
+ self.flex.add_secondary_space(paragraph_spacing(&self.style), true)
}
fn layout_func(&mut self, func: &FuncCall) -> LayoutResult<()> {