aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp A2018-11-14 22:59:29 +0100
committerPhilipp A2018-11-14 22:59:29 +0100
commit6acf5bc4b08a6c11451df79887eaee83b5341735 (patch)
tree1b0815bd2cbe443fe2adfc80076b9155d98d2973
parent9ae00488cd8ce3e6b24102073149a3ecc15c7ae9 (diff)
downloadrust-rst-6acf5bc4b08a6c11451df79887eaee83b5341735.tar.bz2
Fixed title
-rw-r--r--src/rst.pest4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rst.pest b/src/rst.pest
index 8e93ede..f9bc4d4 100644
--- a/src/rst.pest
+++ b/src/rst.pest
@@ -38,8 +38,8 @@ hanging_block = _{
// Title. A block type
title = {
- PUSH(adornments) ~ NEWLINE ~ PEEK[..-1] ~ " "* ~ line ~ POP
- | line ~ adornments ~ NEWLINE
+ PUSH(adornments) ~ NEWLINE ~ PEEK[..-1] ~ " "* ~ line ~ PEEK[..-1] ~ POP
+ | line ~ PEEK[..] ~ adornments ~ NEWLINE
}
// Bullet list. A block type.