[svn r38140] Empty literal blocks are not allowed: removing them.

--HG--
branch : trunk
This commit is contained in:
guido
2007-02-08 13:26:02 +01:00
parent 938680d50f
commit fd0cbdb95a
2 changed files with 15 additions and 1 deletions
+11
View File
@@ -175,6 +175,17 @@ Paragraph
assert txt == expected
checkrest(txt)
def test_blockquote_empty():
expected = """\
Foo
Bar
"""
txt = Rest(Paragraph('Foo'), LiteralBlock(''), Paragraph('Bar')).text()
print repr(txt)
assert txt == expected
checkrest(txt)
def test_title():
txt = Title(Text("Some title"), belowchar="=").text()
assert txt == "Some title\n=========="