This Space for Rent

New Code!

Discount is not yet up to the official 1.6.2 release, but I’ve got another prerelease for people who are adventurous. 1.6.2.pre2 fixes a defect that Mike Schiraldi reported; if autolink is on, a fragment like

http://a.url.is.here
ht

would generate

<a href="http://a.url.is.here">http://a.url.lis.here</a>
<a href="ht">ht</a>

because the autolink buffer was prefilled with http://… and my autolink check routine was calling strncasecmp() without bothering to make sure that the input was actually long enough to match (and thus T("ht") nicely overlaid the previous “http://”, and strncasecmp() didn’t know that it was only supposed to check S("ht") characters instead of the 7 characters in http://. Damnit.)

All the other feature changes from 1.6.1.pre1 are still in (better behaving emphasis on pathological input, new test cases, new output format for make test so that it doesn’t display output for individual tests unless one of them fails, and some markup repair for where I misread the standard) so this is the New Code! you’ve been looking for to liven up your cold dark rainy weekend.

PS: I’ve also started writing a manpage for the callback functions I implemented in 1.6.0

PPS: And I’ve started writing configuration support for shared libraries on Linux (hypothetically; the only Linux boxes I’ve got run a.out, baby, so I’m just guessing that the C compiler on modern Linuces uses the same (poorly documented) command line options that FreeBSD uses,) elderly versions of FreeBSD, and spanking new versions of FreeBSD. That library support isn’t in this prerelease, but might make it into the official 1.6.2 release if I’m feeling confident enough about it by the time I’m happy with the bug reports (or, hopefully, lack thereof) from the new features I’ve already put in.