]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jan 2006 06:13:31 +0000 (06:13 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jan 2006 06:13:31 +0000 (06:13 +0000)
doc/build/components/formatting.myt

index 00e91c3795b6cc6c0aa43961965ffb558031864f..d4bada192c6d1125c578337401117d7b7561ae40 100644 (file)
@@ -350,7 +350,11 @@ javascript:togglePopbox('<% name %>', '<% show %>', '<% hide %>')
 </%method>
 
 <%method codepopper trim="both">
-    '''PYESC<&|SELF:popbox, class_="codepop" &><% m.content() %></&>PYESC'''
+       <%init>
+               c = m.content()
+               c = re.sub(r'\n', '<br/>\n', c.strip())
+       </%init>
+    '''PYESC<&|SELF:popbox, class_="codepop" &><% c %></&>PYESC'''
 </%method>
 
 <%method poppedcode trim="both">