This Space for Rent

New Code (“coding from my sickbed” edition)

Discount has been shoved up to version 1.5.8 with the eradication of a couple of bugs and the addition of a tiny new feature.

The newly squashed bugs (reported by Matthew Kennard) had to do with table handling; - the one he reported was that a line with |’s in it, if followed by a blank line, would be treated as a table, and - the other one, which I discovered when correcting this first one, was that a table that contained nothing but headers would be silently dropped.

This meant that input like

 A|B|C

 new para

would make discount silently eat the A|B|C and generate

<p>new para</p>

(The first bug treated A|B|C as a table, and the second bug meant that it wouldn’t display because it didn’t have any data associated with it.)

The feature (requested by Val Schmidt at UNH) was to allow image sizes of the form “=xH” (to set the height of an image) and “=Wx” (to set the width.) This allows someone to scale an image to fit a particular height or width without having to hand-compute the other dimension.

None of these features introduce any new data structures, so they should be fairly safe. Heh heh heh.