Message4111
The current code in templating.py:StringHTMLProperty._hyper_repl_url
checks for a > *at the end* of the URL. If the url is e.g.
"<www.roundup.net>.":
1) the string is first converted to "<www.roundup.net>.";
2) the regex matches the whole string, including the trailing '.';
3) _hyper_repl_url checks for a > at the end of the string and
doesn't find it (because there's the dot);
4) the whole string is converted to a link.
The attached patch checks for a > in any point of the URL and convert
to a link only the part before it. It also refactors a bit the function
in order to apply the parentheses checks even when the > is found and
improve it in case the ending ')' is missing. |
|
Date |
User |
Action |
Args |
2010-08-11 19:28:17 | ezio.melotti | set | recipients:
+ ezio.melotti, richard |
2010-08-11 19:28:16 | ezio.melotti | set | messageid: <1281554896.71.0.947806353616.issue2550664@psf.upfronthosting.co.za> |
2010-08-11 19:28:16 | ezio.melotti | link | issue2550664 messages |
2010-08-11 19:28:15 | ezio.melotti | create | |
|