changeset 2929:d27e69a60928

invalid output from HTML converter parsing preformatted code, multile paragraphs, fixes #516 part 1 of 2, part 2 is EmeraldTree fix
author RogerHaase <haaserd@gmail.com>
date Tue, 14 Apr 2015 07:34:19 -0700
parents 85fdbd9c26a0
children 7c4eba7d31ff
files MoinMoin/converter/html_in.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/html_in.py	Fri Mar 06 14:05:18 2015 -0700
+++ b/MoinMoin/converter/html_in.py	Tue Apr 14 07:34:19 2015 -0700
@@ -96,8 +96,7 @@
         # We create an element tree from the HTML content
         # The content is a list of string, line per line
         # We can concatenate all in one string
-        html_str = ''
-        html_str = html_str.join(content)
+        html_str = u'\n'.join(content)
         html_tree = HTML(html_str)
 
         # We should have a root element, which will be converted as <page>