Hi,

> So, in summary, I cannot understand why the small part I added to the
> template file breaks the generated CSS stylesheet.

I can reproduce and this is a bug in genshi as the following code shows.

--
from genshi.template import OldTextTemplate

tmpl = OldTextTemplate('''
\#foo

#if bar
\#baz
#end
''')

print tmpl.generate(bar=True)
--

output :
--

\#foo

\#baz

--

Expected output :
--

#foo

#baz

--

> The lazygal man page refers to
> http://genshi.edgewall.org/wiki/Documentation/text-templates.html
> for the syntax explanation of text templates, but the web page now
> describes a new syntax and only dedicates a few final words to
> the legacy syntax...

Your bug report made me notice the deprecation of the text template
syntax I was using.

The following patch makes lazygal use the new text syntax.
http://sousmonlit.incube.tk/~niol/repositories/lazygal/rev/0ce290707e12

As the old text syntax is deprecated, I think there is no point in
re-assigning this bug to python-genshi. Please do so if you think this
is worth it. Please tell me if this bug report can be closed
otherwise.

Thanks,

Alex


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to