From 6e50667c01bac9b0e37e807d8ecadf7652778e1c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 18 Jan 2006 06:13:31 +0000 Subject: [PATCH] fix --- doc/build/components/formatting.myt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"> -- 2.47.2