diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-24 21:36:41 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-24 21:38:23 +0200 |
| commit | 2f33ad0e0aa3d1f4a949025597bf1ea36256831f (patch) | |
| tree | c98bff188e35d0836384418c7da1635660b10fe7 /src/syntax/mod.rs | |
| parent | 2791f59ce2404d0483aee92b8231df95aa45b7a5 (diff) | |
Rename soft linebreak to justified linebreak
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 00bcb376..2272b3e0 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -588,8 +588,8 @@ pub enum NodeKind { Space(usize), /// A consecutive non-markup string. Text(EcoString), - /// 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 non-breaking space: `~`. NonBreakingSpace, @@ -867,8 +867,8 @@ impl NodeKind { Self::Markup(_) => "markup", Self::Space(2 ..) => "paragraph break", Self::Space(_) => "space", - Self::Linebreak(false) => "hard linebreak", - Self::Linebreak(true) => "soft linebreak", + Self::Linebreak(false) => "linebreak", + Self::Linebreak(true) => "justified linebreak", Self::Text(_) => "text", Self::NonBreakingSpace => "non-breaking space", Self::Shy => "soft hyphen", |
