Edgewall Software

Opened 20 years ago

Last modified 20 years ago

#907 closed defect

Closing font-style tags ('', ''', ~~ and __) are not recognized around an intra-trac link — at Version 1

Reported by: Juanma Barranquero Owned by: Jonas Borgström
Priority: low Milestone: 0.8
Component: wiki system Version: devel
Severity: minor Keywords: patch
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

Wiki links like

'''ticket:1'''

incorrectly generate HTML links like this one:

<strong><a title="" class="missing" href="/trac/ticket/1'''">ticket:1'''?</a></strong>

I'm no expertin WikiFormatter.py, but the attached patch seems to fix the problem.

Change History (3)

by Juanma Barranquero, 20 years ago

Attachment: WikiFormatter.diff added

Patch to fix intra-trac links inside font styles.

by Christopher Lenz, 20 years ago

Attachment: ticket907.patch added

Combined patch with additional unit test

comment:1 by Christopher Lenz, 20 years ago

Component: generalwiki
Description: modified (diff)
Keywords: patch added; links removed
Priority: normallow

I think the patch looks good, and have just added a new patch including the original but with an added unit test for the expected behavior.

I'll leave it to jonas to actually check in this change, as I'm far too uncertain about touching the Wiki formatter myself at this point.

Note: See TracTickets for help on using tickets.