summaryrefslogtreecommitdiff
path: root/src/exec
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec')
-rw-r--r--src/exec/mod.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/exec/mod.rs b/src/exec/mod.rs
index 3dbe8270..37c03cda 100644
--- a/src/exec/mod.rs
+++ b/src/exec/mod.rs
@@ -103,12 +103,17 @@ impl Exec for NodeRaw {
let line_spacing = ctx.state.par.line_spacing.resolve(em);
let mut children = vec![];
+ let mut newline = false;
for line in &self.lines {
+ if newline {
+ children.push(layout::Node::Spacing(NodeSpacing {
+ amount: line_spacing,
+ softness: Softness::Soft,
+ }));
+ }
+
children.push(layout::Node::Text(ctx.make_text_node(line.clone())));
- children.push(layout::Node::Spacing(NodeSpacing {
- amount: line_spacing,
- softness: Softness::Hard,
- }));
+ newline = true;
}
if self.block {