pp2html: subtle bug

[email protected] (Robert Inder) 25 Mar 2002 11:14:02 +0000
Newsgroups perl.perlpoint
Message-ID <[email protected]>
I've found a problem with pp2html.  

pp2html tries to detect empty table cells, and plant an "&nbsp;" 
in them to make them look sensible when the HTML is rendered.

Unfortunately, the way it detects empty cells is too simplistic.
It just looks for text pending in @BUFFER.

But some things --- for instance \IMAGE tags --- do not put their
text in @BUFFER.  So pp2html inserts a spurious &nbsp;, and this
can make table cells too big.

I don't understand why some things go in @BUFFER and others don't,
so I'm not sure what should be changed to make it right.

For now, I've just disabled this behaviour completely --- I have
a presentation tomorrow!  If I need the spaces, I'll define
\EMPTYCELL to embed them explicitly in HTML.

But I think it deserves some attention...

Robert.

------------------------------------------------------------------------
Robert Inder   Interactive Information Limited,           07770 30 40 52
               3, Lauriston Gardens,    Edinburgh    EH3 9HH    SCOTLAND
------------------------------------------------------------------------