summaryrefslogtreecommitdiff
path: root/src/parse/incremental.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-05 14:51:06 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-05 15:04:31 +0200
commitb865accae6c5e9f5d62afe4637c985c81b70eb4f (patch)
tree752e0c3cc73b32b7ec16c1b26516610b79a29544 /src/parse/incremental.rs
parent2eacfcfa8121e1002db45232b343ce846c0c8b2f (diff)
Don't allow headings to span multiple lines
Diffstat (limited to 'src/parse/incremental.rs')
-rw-r--r--src/parse/incremental.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/incremental.rs b/src/parse/incremental.rs
index a2ba502b..66318790 100644
--- a/src/parse/incremental.rs
+++ b/src/parse/incremental.rs
@@ -364,7 +364,7 @@ mod tests {
test("hey #myfriend", 4 .. 4, "\\", 0 .. 14);
test("hey #myfriend", 4 .. 4, "\\", 3 .. 6);
test("= foo\nbar\n - a\n - b", 6 .. 9, "", 0 .. 11);
- test("= foo\n bar\n baz", 6 .. 8, "", 0 .. 15);
+ test("= foo\n bar\n baz", 6 .. 8, "", 0 .. 9);
}
#[test]