You are here: Foswiki>Tasks Web>Item871 (18 May 2009, CrawfordCurrie)Edit Attach

Item871: first line of topic has to be empty for correct markup

pencil
Priority: Low
Current State: Closed
Released In:
Target Release:
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: ChristophScheurer
Waiting For:
Last Change By: CrawfordCurrie
If I publish a topic e.g. with the standard print skin the first line appears verbatim in the static html page (this is ugly e.g. for a first level heading). This can be prevented if the first line is completely empty and the content only starts on the second line. But then, the next time I edit the topic again, this empty first line is discarded automatically. A working hack is to make the first line a nop and then an empty line. But that's not a workable approach with a larger user base. This problem does not occur with the basic_publish skin, yet with everything derived from PatternSkin I have this problem.

-- ChristophScheurer


I don't see this effect; i get output published according to the skin I select.

It sounds like the version of pattern skin you are using may have been locally modified....

-- CrawfordCurrie - 18 Mar 2009

I had the same issue, I had to modify the TMPL:DEF{"content"} definition so that there is an empty line before TEXT.

(I took pattern skin and created a publish skin)

-- MarcSCHAEFER - 09 May 2009

pattern is not a publishable skin; it has many dynamic components. Given that this works with basic_publish, and Marc has provided a workaround, I'm lowering the priority from Urgent to Low.

-- CrawfordCurrie - 16 May 2009

TEXT is used in a horrible way by the View script, as a split anchor, and a newline is silently injected when the split is reassembled. Simulated by adding in a newline.

-- CrawfordCurrie - 18 May 2009

ItemTemplate edit

Summary first line of topic has to be empty for correct markup
ReportedBy ChristophScheurer
Codebase 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component PublishPlugin
Priority Low
CurrentState Closed
WaitingFor
Checkins PublishPlugin:4ccb27104654
ReleasedIn
Topic revision: r6 - 18 May 2009, CrawfordCurrie
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