changeset 4012:0c9ba3c96ac8

fix first line of pre tag strip problem
author Byeongweon [tasyblue@gmail.com]
date Wed, 13 Aug 2008 17:24:31 +0900
parents 42526183b82b
children a258a234af5d
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Aug 13 12:53:50 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Aug 13 17:24:31 2008 +0900
@@ -947,7 +947,7 @@
                     # get longest pre tag({{{ or }}}) from content
                     delimiters.extend(re.compile("((?u){+)").findall(i.data))
                     delimiters.extend(re.compile("((?u)}+)").findall(i.data))
-                    for line in i.data.strip().split('\n'):
+                    for line in i.data.rstrip().split('\n'):
                         if line.strip().startswith('#!'):
                             if bang_args == '':
                                 bang_args = line.strip()