Takayuki Shimizukawa avatar Takayuki Shimizukawa committed 5338fce

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

Comments (1)

Files changed (1)

tests/test_build_text.py

 
 
 @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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.