Add regression test for #1109. Issue was corrected at previous commit 62b0a5f17f62. Closes #1109

This commit is contained in:
Takayuki Shimizukawa
2013-03-09 23:14:31 +09:00
parent f6fca7a8ac
commit e2087189ea

View File

@@ -59,6 +59,34 @@ def test_maxwitdh_with_prefix(app):
assert lines[9].startswith('spam egg')
@with_text_app()
def test_lineblock(app):
# regression test for #1109: need empty line after line block
contents = (
u"* one\n"
u"\n"
u" | line-block 1\n"
u" | line-block 2\n"
u"\n"
u"followed paragraph.\n"
)
(app.srcdir / 'contents.rst').write_text(contents, encoding='utf-8')
app.builder.build_all()
result = (app.outdir / 'contents.txt').text(encoding='utf-8')
expect = (
u"* one\n"
u"\n"
u" line-block 1\n"
u" line-block 2\n"
u"\n"
u"followed paragraph.\n"
)
assert result == expect
@with_text_app()
def test_multibyte_title_line(app):
title = u'\u65e5\u672c\u8a9e'