summaryrefslogtreecommitdiff
path: root/src/syntax/ast.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-24 21:36:41 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-24 21:38:23 +0200
commit2f33ad0e0aa3d1f4a949025597bf1ea36256831f (patch)
treec98bff188e35d0836384418c7da1635660b10fe7 /src/syntax/ast.rs
parent2791f59ce2404d0483aee92b8231df95aa45b7a5 (diff)
Rename soft linebreak to justified linebreak
Diffstat (limited to 'src/syntax/ast.rs')
-rw-r--r--src/syntax/ast.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs
index 82bb7d56..5232b1f1 100644
--- a/src/syntax/ast.rs
+++ b/src/syntax/ast.rs
@@ -62,7 +62,7 @@ impl Markup {
self.0.children().filter_map(|node| match node.kind() {
NodeKind::Space(2 ..) => Some(MarkupNode::Parbreak),
NodeKind::Space(_) => Some(MarkupNode::Space),
- NodeKind::Linebreak(s) => Some(MarkupNode::Linebreak(*s)),
+ NodeKind::Linebreak(j) => Some(MarkupNode::Linebreak(*j)),
NodeKind::Text(s) => Some(MarkupNode::Text(s.clone())),
NodeKind::Escape(c) => Some(MarkupNode::Text((*c).into())),
NodeKind::NonBreakingSpace => Some(MarkupNode::Text('\u{00A0}'.into())),
@@ -88,8 +88,8 @@ impl Markup {
pub enum MarkupNode {
/// Whitespace containing less than two newlines.
Space,
- /// A forced line break. If soft (`\`, `true`), the preceding line can still
- /// be justified, if hard (`\+`, `false`) not.
+ /// A forced line break. If `true` (`\`), the preceding line can still be
+ /// justified, if `false` (`\+`) not.
Linebreak(bool),
/// A paragraph break: Two or more newlines.
Parbreak,