This Space for Rent

New Code!

Discount has been pushed up to version 2.1.1.3 with one small bugfix that corrects a defect that goes back to the beginning of time.

It turns out that when I first wrote discount, I misread the reference smartypants documentation as saying that 1 dash makes an &endash; and 2 dashes make an &emdash; (it’s actually 2 and 3, respectively.) So I coded it up like that and left it like that because it doesn’t trip any of the standard markdown test suites and, obviously, it didn’t trip my incorrect test suite.

John Foerch, on the other hand, actually knows something about typography, and when he read the smartypants section of the discount webpage, he noticed that my implementation was Wrong Wrong Wrong! and dropped me a line pointing it out.

I plunge a dagger into my eye from shame. I die, and my noxious humors drain into the Portland watershed, poisoning the entire Tri-Met area. By an awful coincidence, the executive boards of Apple, Microsoft, and Intel are in town for the weekend and also die. The Open Source®©™ community blame Microsoft for Linus Torvalds' death, Microsoft blames the Open Source®©™ community for death of their executive board. Someone gets the launch codes and nukes Seattle, but not before someone at Amazon is able to break into the Soviet arsenal and launch a strike at Cambridge, MA. In their dying throes, hackers in Boston blame it all on NYC and hack into the Chinese nuclear arsenal for a full-out nuclear assault on Manhattan Island. In revenge for this, the American Imperium launches missiles at Syria, Iran, Iraq, Afghanistan, France, Nova Scotia, Iowa, and California. Radiation blankets the earth, and nuclear winter sets in soon thereafter.

All die. Oh the embarrassment.

But before the clouds of radiation spread over the globe, you might want to grab this New Code! so you can die content in the knowledge that your -- and --- are converted to – and — like they’re supposed to be doing.