Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 6299:fd0bdcbc68e4
issue2551104 - fix issue with markdown autolink next to punctuation
Given:
[label](http://example.com/).
generated href including the ').' This fixes that.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 20 Dec 2020 12:28:59 -0500 |
| parents | 3f7538316724 |
| children | 1a15089c2e49 6f89cdc7c938 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Sun Dec 20 11:09:26 2020 -0500 +++ b/roundup/cgi/templating.py Sun Dec 20 12:28:59 2020 -0500 @@ -1686,7 +1686,7 @@ ('(', ')'), }: continue - if prefix == '(' and match.string[end - 1] == ')': + if prefix == '(' and ')' in match.group(group): continue s = match.group(group) return '<%s>' % s
