Item11137: breaks %TOC%

pencil
Priority: Normal
Current State: Duplicate
Released In: n/a
Target Release: n/a
Applies To: Extension
Component:
Branches:
Reported By: VasekOpekar
Waiting For:
Last Change By: MichaelDaum
when adding %TOC% it shows (besides the name of the chapter) also text from the <a class=" ...">

E.g. for chapter Aromi in RestaurantsPrague it shows "Aromi topic:'RestaurantsPrague', from:'1', to:'1'}"

I tried a quickfix in lib/Foswiki/Macros/TOC.pm line 199

        # Prevent manual links
        $text =~ s/<nop>//gi;  #quickfix?
        $text =~ s/<[\/]?a\b[^>]*>//gi;

it works, not sure if its correct, nor I'm not sure if the problem isn't on my server.

-- VasekOpekar - 19 Sep 2011

actualy its related to EditChapterPlugin which changes the chapters headings rendering and TOC then has troubles to handle it

-- VasekOpekar - 19 Sep 2011

A better fix is available at Item11045

-- MichaelDaum - 20 Sep 2011

ItemTemplate edit

Summary breaks %TOC%
ReportedBy VasekOpekar
Codebase 1.1.3
SVN Range
AppliesTo Extension
Component
Priority Normal
CurrentState Duplicate
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 20 Sep 2011, MichaelDaum
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