File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -173,3 +173,13 @@ def test_github_issue_49():
173173 result = textile .textile (s )
174174 expect = '\t <p><a href="https://ru.vuejs.org/v2/guide/components.html#Входные-параметры">link</a></p>'
175175 assert result == expect
176+
177+ def test_github_issue_50 ():
178+ """Incorrect wrap code with Java generics in pre"""
179+ test = ('pre.. public class Tynopet<T extends Framework> {}\n \n final '
180+ 'List<List<String>> multipleList = new ArrayList<>();' )
181+ result = textile .textile (test )
182+ expect = ('<pre>public class Tynopet<T extends Framework> {}\n \n '
183+ 'final List<List<String>> multipleList = new '
184+ 'ArrayList<>();</pre>' )
185+ assert result == expect
Original file line number Diff line number Diff line change @@ -534,7 +534,10 @@ def block(self, text):
534534 # at this point, we've gone through all the lines, and if there's still
535535 # an extension in effect, we close it here.
536536 if ext and out :
537- final = generate_tag (block .outer_tag , out .pop (), block .outer_atts )
537+ block .content = out .pop ()
538+ block .process ()
539+ final = generate_tag (block .outer_tag , block .content ,
540+ block .outer_atts )
538541 out .append (final )
539542 return '' .join (out )
540543
You can’t perform that action at this time.
0 commit comments