Commit Graph

106 Commits

Author SHA1 Message Date
Martin Geisler
e0160ceaeb minirst: simplify bullet list indentation computation 2009-08-02 21:29:15 +02:00
Martin Geisler
65b64640d1 minirst: indent literal blocks with two spaces
The vast majority* of them are formatted like this in the source, so
this basically reverts the output to how it looked before we got the
minirst parser.

*: the help on templating use four spaces for some examples and will
   now shown with an indentation of just two spaces.
2009-08-02 17:17:17 +02:00
Martin Geisler
7953ecf0bd minimal reStructuredText parser 2009-07-16 23:25:25 +02:00
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