[Grok-dev] Re: bad layout of code samples on grok.zope.org

Martijn Faassen faassen at startifact.com
Thu Mar 22 12:54:09 EDT 2007

Martijn Faassen wrote:
> I just noticed something peculiar about the layout of the tutorial code 
> samples on grok.zope.org: they appear centered.
> I think they are more easy to follow left-aligned, as what I get when I 
> run rst2html myself with the default stylesheet.
> It's a bit surprising though as they also look like they have extra 
> spaces in the HTML source on grok.zope.org:
> <pre class="literal-block">            &lt;html&gt;
>             &lt;body&gt;
>             &lt;p tal:content="python:view.alpha"&gt;result&lt;/p&gt;
>             &lt;/body&gt;
>             &lt;/html&gt;
>             </pre>

I figured out why this is indented: *all* the HTML is indented this way. 
This is fine for HTML, but very bad for literal blocks wrapped in a 
<pre>. If we can stop all the HTML from being indented like this, the 
blocks should look fine too.



More information about the Grok-dev mailing list