Tags:
create new tag
, view all tags
Preformatted sections on just one line will mask all headlines up to next </pre> tag on separate line.

Test case

This is such a section
(I use this for code samples in a table, which shall not wrap within the table cell.)

This headline will not show up in TOC.

This is a "normal" preformatted block,
with an end tag on a line of its own.

This headline will show up again

Environment

TWiki version: all having %NOP%
TWiki plugins: n/a
Server OS: n/a
Web server: n/a
Perl version: n/a
Client OS: n/a
Web Browser: n/a

-- PeterKlausner - 17 Mar 2003

Follow up

Fix record

In CVS:lib/TWiki.pm fix the function handleToc():
swap the check for <pre> and </pre>.

BTW: wouldn't next; instead of $line = ""; buy a few CPU cycles?

-- PeterKlausner - 17 Mar 2003

Topic revision: r1 - 2003-03-17 - PeterKlausner
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.