changeset 4015:73e64899e511

fix useless line added problem when edit page using gui editor
author Byeongweon [tasyblue@gmail.com]
date Thu, 14 Aug 2008 11:03:50 +0900
parents 31a903106d19
children 64ecf99e41f6
files MoinMoin/converter/text_html_text_moin_wiki.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/text_html_text_moin_wiki.py	Wed Aug 13 18:57:08 2008 +0900
+++ b/MoinMoin/converter/text_html_text_moin_wiki.py	Thu Aug 14 11:03:50 2008 +0900
@@ -947,7 +947,8 @@
                     # 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.rstrip().split('\n'):
+                    # to remove useless line start iteration second line of i.data
+                    for line in i.data.rstrip().split('\n')[1:]:
                         if line.strip().startswith('#!'):
                             if bang_args == '':
                                 bang_args = line.strip()