OutlineFormatter messes up large titles with wiki formatting
|Reported by:||Owned by:||Jonas Borgström|
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.