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