Item9423: TOC is broken if a header contains wikiword link as first word

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: KennethLavrsen
Waiting For: Main.KennethLavrsen
Last Change By: KennethLavrsen
This is trunk only

This is a bug injected because of the code changes of TOC in trunk.

Here is an example

Some header

Blabla

Some other header

Blabla

PatternSkin is a nice skin

Blabla

I am happy with TablePlugin

Notice the TOC links. The ones that contain a wikiword do not link down to the anchor but to the wikiword. You never want the links in the TOC to be broken like this. The TOC links must always link to the anchors.

Yet another release blocker.

-- KennethLavrsen - 01 Aug 2010

Found root cause

Yet another code refactoring related bug

-- KennethLavrsen - 01 Aug 2010

Checked in fix but it is only half a solution.

The anchors are still broken. They are genrated from the rendered text instead of the raw.

The unit tests are so basic and useless that they do not show the problem.

I suspect the problem is related to FindElsewherePlugin

-- KennethLavrsen - 01 Aug 2010

Yes.

The problem is when you use WikiWords that are rerendered by FindElsewherePlugin.

In 1.0.9 the anchors are generated before the handler that find elsewhere is using.

In 1.1.0 the anchors are generated after. Or maybe regenerated. Problem is that the anchor in TOC is without the encoded square brackets.

Different bug than this. I will open a new.

-- KennethLavrsen - 01 Aug 2010

Nope.

The order is the same. Problem seems to be related to a square bracket is now encoded as _91 and _93. That is new in trunk.

But this encoding is not happening if they were added by FindElsewherePlugin.

What other plugins will create same problem?

Is the TOC called earlier now after the refactoring?

-- KennethLavrsen - 01 Aug 2010

Fixed in Item9426

-- KennethLavrsen - 02 Aug 2010

Unit tests for this bug checked in

Closing as it was not in 1.0.9

-- KennethLavrsen - 02 Aug 2010
 

ItemTemplate edit

Summary TOC is broken if a header contains wikiword link as first word
ReportedBy KennethLavrsen
Codebase
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor KennethLavrsen
Checkins distro:2b591715862b distro:7387273e2844
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r4 - 02 Aug 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy