Prevent stripping newlines in the middle of markdown submissions
This commit is contained in:
1 parent
f45c2e97da
commit
05297eb59b
2 files changed
+5
-1
No files matched your search
@@ -709,6 +709,10 @@ def test_terminal_strip_instructions(terminal):
|
||||
text = '\n \n code\n block\n'
|
||||
assert terminal.strip_instructions(text) == ' code\n block'
|
||||
|
||||
# However, blank lines in the middle of comment should not be stripped
|
||||
text = 'paragraph 1\n\nparagraph 2\n'
|
||||
assert terminal.strip_instructions(text) == 'paragraph 1\n\nparagraph 2'
|
||||
|
||||
|
||||
def test_terminal_get_link_pages(terminal):
|
||||
|
||||
|
||||
Reference in new issue
Block a user