[Moin-user] code blocks and indentation (redux)

Poor Yorick net.sourceforge.lists.moin-user at pooryorick.com
Fri May 16 14:47:34 EDT 2008


Ahem... what I meant to say was...

I use an outline syle of formatting that eschews most other markup.  This makes
for a somewhat boring-looking, but (to me at least) very readable presentation.  The raw text itself is also just about as readable.  One thing, though, is that if I start a code-block at some level within the outline, the indentation of the lines is also included in the presentation of the code block.  In order for the indentation to look right in the rendered page, all code blocks, even if they belong to some deeper lever in the outline, must start at the beginning of a line.  For example, in the following markup, the second code block will be indented more deeply than "content 1".   It would be nice if the renderer stripped from each line within the code block the same amount of whitespace that preceds the opening "{{{" of the block.


level1

{{{
a code block
}}}

    level2
        


        level3

            "content 1"

            {{{
            a code block
            }}}

- 
Yorick








More information about the Moin-user mailing list