rm redundant blank lines before literal blocks (#18465)
This commit is contained in:
parent
0d74f60742
commit
0e44d137f9
4 changed files with 23 additions and 12 deletions
|
|
@ -196,6 +196,22 @@ suite "RST parsing":
|
|||
rnLeaf 'someBlockQuote'
|
||||
""")
|
||||
|
||||
test "no redundant blank lines in literal blocks":
|
||||
check(dedent"""
|
||||
Check::
|
||||
|
||||
|
||||
code
|
||||
|
||||
""".toAst ==
|
||||
dedent"""
|
||||
rnInner
|
||||
rnLeaf 'Check'
|
||||
rnLeaf ':'
|
||||
rnLiteralBlock
|
||||
rnLeaf 'code'
|
||||
""")
|
||||
|
||||
suite "RST indentation":
|
||||
test "nested bullet lists":
|
||||
let input = dedent """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue