Skip to content

Commit b54df21

Browse files
beledouxdenissethmlarson
authored andcommitted
email: test case for blank between nested comment
To test a whitespace between two nested comments leads to a new line with one space indentation on folding
1 parent ea4a246 commit b54df21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_email/test__header_value_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,6 +3310,8 @@ def test_address_list_with_long_unwrapable_comment(self):
33103310
'(Escaped \\( \\) chars \\\\ in comments stay\n escaped)<spy@example.org>\n'),
33113311
('((loremipsum)(loremipsum)(loremipsum)(loremipsum))<spy@example.org>',
33123312
'((loremipsum)(loremipsum)(loremipsum)(loremipsum))<spy@example.org>\n'),
3313+
('((loremipsum)(loremipsum)(loremipsum) (loremipsum))<spy@example.org>',
3314+
'((loremipsum)(loremipsum)(loremipsum)\n (loremipsum))<spy@example.org>\n'),
33133315
]
33143316
for (to, folded) in cases:
33153317
with self.subTest(to=to):

0 commit comments

Comments
 (0)