diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2013-03-09 23:14:31 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2013-03-09 23:14:31 +0900 |
commit | e2087189ead6c44093be7e6c3de1dfb52624867f (patch) | |
tree | 856493b9b97f6ad8ef6034d2633b877162a3a9d5 /tests/test_build_text.py | |
parent | f6fca7a8ac75e3fa2d2456646fe7c6c310547cba (diff) | |
download | sphinx-git-e2087189ead6c44093be7e6c3de1dfb52624867f.tar.gz |
Add regression test for #1109. Issue was corrected at previous commit 62b0a5f17f62. Closes #1109
Diffstat (limited to 'tests/test_build_text.py')
-rw-r--r-- | tests/test_build_text.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test_build_text.py b/tests/test_build_text.py index e36076a58..41603d502 100644 --- a/tests/test_build_text.py +++ b/tests/test_build_text.py @@ -60,6 +60,34 @@ def test_maxwitdh_with_prefix(app): @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' underline = u'=' * column_width(title) |