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

Poor Yorick net.sourceforge.lists.moin-user at pooryorick.com
Sat May 17 01:08:33 EDT 2008


Fred Drake wrote:
> On Fri, May 16, 2008 at 2:47 PM, Poor Yorick
> <net.sourceforge.lists.moin-user at pooryorick.com> wrote:
>> 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.
> 
> Fortunately, the reStructuredText syntax doesn't have this problem.
> There's some description of how to use this in moin in the stock help
> pages.  You'll need to include the Python docutils package in your
> installation to use this.
> 

I'm aware of restructured text, but I just wanted to point out that the 
moinmoin wiki parser could make this improvement.  There's no ambiguity, 
because if someone has gone to the trouble of indenting the initial "{{{", they 
are clearly trying to indent the code chunk, but not double-indent it as in the 
current case.

-- 
Yorick




More information about the Moin-user mailing list