From: Mike Bayer Date: Wed, 18 Jan 2006 06:13:31 +0000 (+0000) Subject: fix X-Git-Tag: rel_0_1_0~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e50667c01bac9b0e37e807d8ecadf7652778e1c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix --- diff --git a/doc/build/components/formatting.myt b/doc/build/components/formatting.myt index 00e91c3795..d4bada192c 100644 --- a/doc/build/components/formatting.myt +++ b/doc/build/components/formatting.myt @@ -350,7 +350,11 @@ javascript:togglePopbox('<% name %>', '<% show %>', '<% hide %>') <%method codepopper trim="both"> - '''PYESC<&|SELF:popbox, class_="codepop" &><% m.content() %>PYESC''' + <%init> + c = m.content() + c = re.sub(r'\n', '
\n', c.strip()) + + '''PYESC<&|SELF:popbox, class_="codepop" &><% c %>PYESC''' <%method poppedcode trim="both">