File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ def test_urls():
4646 expect = '\t <p>A link that starts with an h is <a href="/test/">handled</a> incorrectly.</p>'
4747 assert result == expect
4848
49+ result = t .parse ('A link that starts with a space" raises":/test/ an exception.' )
50+ expect = '\t <p><a href="/test/">A link that starts with a space” raises</a> an exception.</p>'
51+ assert result == expect
52+
4953def test_rel_attribute ():
5054 t = Textile (rel = 'nofollow' )
5155 result = t .parse ('"$":http://domain.tld' )
Original file line number Diff line number Diff line change @@ -672,7 +672,10 @@ def markStartOfLinks(self, text):
672672 balanced = balanced - 1
673673 if re .search (r'\S$' , possibility , flags = re .U ): # pragma: no branch
674674 balanced = balanced + 1
675- possibility = possible_start_quotes .pop ()
675+ try :
676+ possibility = possible_start_quotes .pop ()
677+ except IndexError :
678+ break
676679 else :
677680 # If quotes occur next to each other, we get zero
678681 # length strings. eg. ...""Open the door,
You can’t perform that action at this time.
0 commit comments