Browse files

Remove --no-wrap; change para formatting to unicode string.

  • Loading branch information...
1 parent 5cad4c4 commit 5710dc771d6951519eea5209f388fe17b79b973c @akavlie committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pelican/tools/pelican_import.py
View
4 pelican/tools/pelican_import.py
@@ -227,12 +227,12 @@ def fields2pelican(fields, out_markup, output_path, dircat=False):
# Replace newlines with paragraphs wrapped with <p> so
# HTML is valid before conversion
paragraphs = content.split('\n\n')
- paragraphs = ['<p>{}</p>'.format(p) for p in paragraphs]
+ paragraphs = [u'<p>{}</p>'.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:

0 comments on commit 5710dc7

Please sign in to comment.