Commit Graph

103 Commits

Author SHA1 Message Date
Martin Geisler
1a33bb5ceb minirst: improve layout of field lists
Before, we used the padding following the key to compute where to wrap
the text. Long keys would thus give a big indentation. It also
required careful alignment of the source text, making it cumbersome to
items to the list.

We now compute the maximum key length and use that for all items in
the list. We also put a cap on the indentation: keys longer than 10
characters are put on their own line. This is similar to how rst2html
handles large keys: it uses 14 as the cutoff point, but I felt that 10
was better for monospaced text in the console.
2009-12-13 23:49:53 +01:00
Martin Geisler
d96f024a4b minirst: don't test regexps twice
We know the regexps match since splitparagraphs used them too.
2009-12-13 22:37:30 +01:00
Martin Geisler
e1df25704d minirst: run inlineliterals too in debug mode 2009-12-13 19:24:24 +01:00