Quantcast
Channel: perl.perlpoint
Viewing all articles
Browse latest Browse all 80

pp2html: subtle bug by Robert Inder

$
0
0

I've found a problem with pp2html.

pp2html tries to detect empty table cells, and plant an " "
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  , 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
------------------------------------------------------------------------

Viewing all articles
Browse latest Browse all 80

Trending Articles