--
TWiki:Main/JohnDeStefano - 22 Jan 2008
All of our TWiki 4.1.2 topic titles are being published to HTML via
PublishContrib version 15973 (11 Dec 2007) with raw
---+!!
strings in front and in plain text, instead of being displayed as previous in normal "h1" style.
Example title code, from the
TWiki.PublishContrib topic:
TWiki title code:
---+!! <nop>%TOPIC%
Published HTML title:
---+!! PublishContrib
It seems that Publish worked properly when the TWiki topic included a line break between the opening of the content div and the h1 heading text. When this line did not exist, and when the heading was included on the same line as the content div opening tags (along with other tags, such as the breadcrumbs, revision, etc.), Publish failed to recognize the header text as such and published it to HTML as a raw string.
A colleague of mine, Jason Smith, discovered a fix by inserting a new line character into Publish.pm in front of the
$text
variable, at the point where
%TEXT%
is replaced with
$text
(at line 559). See attached diff file.
--
TWiki:Main.JohnDeStefano - 04 Feb 2008
John, what template are you using? Because it sounds like there should be a newline in the template before %TEXT%. A code fix should not be necessary.
--
CrawfordCurrie - 20 Aug 2008
No response from reporter, and the problem can't be reproduced, so closing.
--
CrawfordCurrie - 27 Oct 2008
I reported this issue in Jan 2008, and followed up in Feb 2008 with what I thought would be a helpful response, and gave up on it a few months later. I had no idea a question had been asked of me in Aug 2008. If it's possible to subscribe to 'develop' changes somehow and be notified via email, please let me know how.
We are using a template based on the Pattern skin.
--
TWiki:Main.JohnDeStefano - 22 Jan 2009