rm redundant blank lines before literal blocks (#18465)

This commit is contained in:
Andrey Makarov 2021-07-09 03:24:57 +03:00 • committed by GitHub
commit 0e44d137f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 12 deletions

View file

@ -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 """