From 5710dc771d6951519eea5209f388fe17b79b973c Mon Sep 17 00:00:00 2001 From: Aaron Kavlie Date: Wed, 18 Apr 2012 22:28:49 -0700 Subject: [PATCH] Remove --no-wrap; change para formatting to unicode string. --- pelican/tools/pelican_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index fdf28d14e..050b1010d 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -227,12 +227,12 @@ def fields2pelican(fields, out_markup, output_path, dircat=False): # Replace newlines with paragraphs wrapped with

so # HTML is valid before conversion paragraphs = content.split('\n\n') - paragraphs = ['

{}

'.format(p) for p in paragraphs] + paragraphs = [u'

{}

'.format(p) for p in paragraphs] new_content = ''.join(paragraphs) fp.write(content) - cmd = 'pandoc --normalize --no-wrap --reference-links --from=html --to={0} -o "{1}" "{2}"'.format( + cmd = 'pandoc --normalize --reference-links --from=html --to={0} -o "{1}" "{2}"'.format( out_markup, out_filename, html_filename) try: