Ticket #201 (new enhancement)

Opened 13 months ago

Last modified 8 months ago

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.

Change History

Changed 13 months ago by SimonHengel

  • priority changed from major to minor

Changed 13 months ago by waern

Fine with me!

Changed 8 months ago by anonymous

  • milestone 2.10.0 deleted

Milestone 2.10.0 deleted

Note: See TracTickets for help on using tickets.