Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

#4484 closed defect (duplicate)

OutlineFormatter messes up large titles with wiki formatting

Reported by: mnw21@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: wiki system Version: 0.10.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

The OutlineFormatter class generates an array of titles from a page. I'm using TocMacro to generate a table of contents for my wiki pages, and some of the titles are messed up in the contents.

The bug is that OutlineFormatter (eventually, through the OneLinerFormatter) calls shorten_line on the original title text, then reformats to HTML. The shorten_line operation may throw away the closing tags of some wiki formatting, which will then cause the reformatting to HTML to go awry. This is probably most likely to happen if the title contains a link with a long URL.

The OneLinerFormatter should probably reformat to HTML, and then shorten the text in a manner that preserves the HTML tags, not counting the HTML tags as part of the text length.

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 13 years ago

Resolution: duplicate
Status: newclosed

The general problem of shortening wiki text is addressed in #2064.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.