Skip to content

Commit

Permalink
Remove --no-wrap; change para formatting to unicode string.
Browse files Browse the repository at this point in the history
  • Loading branch information
akavlie committed Apr 19, 2012
1 parent 5cad4c4 commit 5710dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pelican/tools/pelican_import.py
Expand Up @@ -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:
Expand Down

0 comments on commit 5710dc7

Please sign in to comment.