Thread Index

Crib formatting problem (was: ADMINISTRIVIA: Feature upgrade done (LONG))

Anselm Lingnau

Anselm Lingnau

July 30, 2013, 1:14 a.m. (Message 64353)

I wrote:

> I'm looking at the cribs issue now.

TL;DR: That should now be fixed.

Technical explanation (for crib editors and contributors): I made some fixes
to the ACE Markdown-style text formatter, which now works as designed in a few
places where it previously didn't. One of those places is within the 
»definition« part of definition lists (<dl>, in HTML usage), which is what 
cribs, among other things, end up as. In particular, I fixed a bug that 
prevented sub-dance descriptions within dance descriptions (i.e., the 
explanation of a complicated figure in two-bar phrases within something like 
»1-8  1st and 2nd couples do the obverse flying borblesulch as follows:«) from 
being formatted correctly.

A collateral effect of this fix is that other Markdown-style stuff in the same 
places now also works as designed (but possibly not as intended by a crib 
author). To wit, a line that is indented by 4 spaces is now (correctly) 
considered a »program text« line to be output verbatim in a typewriter font, 
which messed up the cribs. Rather than complicate the ACE/Markdown processor 
(which is by far the hairiest bit of code in all of the Strathspey site) any 
further by adding yet another special case, I preferred to adapt all the cribs 
by changing all 4-space indents to 2-space indents, which shouldn't matter a 
lot since few if any people ever get to see the raw ACE input text. This fixes 
the formatting issue, but in the future we shall have to watch out when 
inputting new cribs by hand. (@Eric: I also changed the crib importer, so that 
shouldn't be a problem at all.)

Anselm
-- 
Anselm Lingnau, Mainz/Mayence, Germany ................. xxxxxx@xxxxxxxxxx.xxx
Consultants invent these kinds of phrases when they want to charge more money
-- it's a perversion of business life that fancy words always cost more than
plain ones, even though the plain ones are more valuable.
                     -- Dave Thomas et al., _Agile Web Development with Rails_

Previous Thread Next Thread