Ticket #201 (new enhancement)
Strip one leading blank from each line of a code block, if possible
| Reported by: | SimonHengel | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | 2.9.4 | Keywords: | |
| Cc: |
Description
Most people (including me) tend put a leading blank on each non-empty line of a code block.
Say
-- > foobar
instead of
-- >foobar
(e.g. test-framework-th contains real world examples)
The generated HTML documentation retains these leading blanks. And if you copy&paste some example snippets from the documentation, you end up striping these leading blanks manually.
This has annoyed me several times. So I suggest to strip (in the parser) exactly one leading blank from each non-empty line of a code block iff each non-empty line of that code block starts with a blank.
In addition I'd adjust the default CSS to make up for the missing blank.
