Defect #1456

Invalid html generated by wiki formatter

Added by Pierre Paysant-Le Roux almost 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:2008-06-15
Priority:NormalDue date:
Assignee:-% Done:


Target version:0.8
Resolution:Fixed Affected version:0.7.2


Links generated by the wiki are invalid when they contain something that could be an email. For example, this :

is transformed to

<a class=\"external\" href=\"http://<a href=\"\" class=\"email\"></a>\">http://<a href=\"\" class=\"email\"></a></a>

and rendered as this in a web browser.

I observed this problem by using hg fetch that generates commit messages like :

Automated merge with

Here is a patch that solves the problem and a unit test. The code come from The only limitation of this solution is in that case :

where only the first link is detected. I did not found the magic regexp. Maybe this could be solved with some lookbehind but the syntax is not supported on ruby 1.8.

wiki_formatting_links.patch Magnifier - Wiki links patch (798 Bytes) Pierre Paysant-Le Roux, 2008-06-16 00:05

Associated revisions

Revision 1559
Added by Jean-Philippe Lang almost 10 years ago

Fixed: urls containing @ are parsed as email adress by the wiki formatter (#1456).


#1 Updated by Jean-Philippe Lang almost 10 years ago

  • Status changed from New to Closed
  • Target version set to 0.8
  • Affected version (unused) set to 0.7.2
  • Resolution set to Fixed
  • Affected version set to 0.7.2

Fix committed in r1559. Thanks.

Also available in: Atom PDF