You are here: Foswiki>Tasks Web>Item1578 (26 Aug 2011, MichaelDaum)Edit Attach

Item1578: EditChapterPlugin messes up headings example in EditingShorthand

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component:
Branches:
Reported By: UweSinha
Waiting For:
Last Change By: MichaelDaum
When the EditingShorthand topic is included in TextFormattingRules the code for the headings example gets messed up:

---++<span class="ecpHeading"><a name="chapter_system_editingshorthand_1"></a>  Sushi <a class="ecpEdit" href="http://our-wikihost.example.org/foswiki/bin/edit/System/EditingShorthand?cover=chapter;to=1;from=;redirectto=http://our-wikihost.example.org/foswiki/bin/view/System/TextFormattingRules%23chapter_system_editingshorthand_1;t=1241626392" title="Edit this chapter"><img src="%PUBURLPATH%/%SYSTEMWEB%/EditChapterPlugin/pencil.png" height="16" width="16" border="0" /></a></span>
---+++<span class="ecpHeading"><a name="chapter_system_editingshorthand_2"></a>  Maguro <a class="ecpEdit" href="http://our-wikihost.example.org/foswiki/bin/edit/System/EditingShorthand?cover=chapter;to=2;from=2;redirectto=http://our-wikihost.example.org/foswiki/bin/view/System/TextFormattingRules%23chapter_system_editingshorthand_2;t=1241626392" title="Edit this chapter"><img src="%PUBURLPATH%/%SYSTEMWEB%/EditChapterPlugin/pencil.png" height="16" width="16" border="0" /></a></span>
---+++!!<span class="ecpHeading"><a name="chapter_system_editingshorthand_3"></a>  Not in TOC <a class="ecpEdit" href="http://our-wikihost.example.org/foswiki/bin/edit/System/EditingShorthand?cover=chapter;to=3;from=3;redirectto=http://our-wikihost.example.org/foswiki/bin/view/System/TextFormattingRules%23chapter_system_editingshorthand_3;t=1241626392" title="Edit this chapter"><img src="%PUBURLPATH%/%SYSTEMWEB%/EditChapterPlugin/pencil.png" height="16" width="16" border="0" /></a></span>

(I've replaced the actual hostname with our-wikihost.example.org. Sorry for the extra-long lines...)

If viewed directly, however, the code is displayed correctly, like so:

---++ Sushi
---+++ Maguro
---+++!! Not in TOC

Seems to me that EditChapterPlugin is doing something nasty here. Setting EDITCHAPTERPLUGIN_ENABLED to "off" in the topic preferences didn't help, however, but disabling EditChapterPlugin in configure did. Yet, the latter is not a viable option.

-- UweSinha - 06 May 2009

Since I'm not sure if EditChapterPlugin really is the evil-doer, I'm leaving the AppliesTo field alone. Feel free to change this if necessary.

-- UweSinha - 06 May 2009

This is an EditChapterPlugin problem.

-- KennethLavrsen - 07 May 2009

O.k., I've also changed the summary accordingly, so this report can be found a little more easily.

Strangely enough, after setting and unsetting EDITCHAPTERPLUGIN_ENABLED a couple of times, the problem has vanished; i.e. the TML code is displayed correctly even without setting EDITCHAPTERPLUGIN_ENABLED to off in either EditingShorthand or TextFormattingRules. The only thing that has changed (effectively) is the version control information (version number, date/time, version author). Could it have anything to do with that? Seems a bit unlikely to me...

I'll see if I can reproduce this behaviour on another "fresh" Foswiki installation...

-- UweSinha - 07 May 2009

Please ignore my last comment. I'd forgotten that I had disabled EditChapterPlugin for testing purposes, but had not re-enabled it. With EditChapterPlugin enabled, the behavour described at the beginning is reproducible. Setting CurrentState back to "New".

-- UweSinha - 15 May 2009

Can't reproduce this anymore. Seems to be fixed.

-- MichaelDaum - 26 Aug 2011

ItemTemplate edit

Summary EditChapterPlugin messes up headings example in EditingShorthand
ReportedBy UweSinha
Codebase 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r6 - 26 Aug 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