Update Pandoc wrap CLI flag

This commit is contained in:
Adrian Sampson 2017-12-21 13:15:54 -05:00
parent 8a453b6ec8
commit 298050f369

View file

@ -166,7 +166,7 @@ def rst2md(text):
"""Use Pandoc to convert text from ReST to Markdown.
"""
pandoc = subprocess.Popen(
['pandoc', '--from=rst', '--to=markdown', '--no-wrap'],
['pandoc', '--from=rst', '--to=markdown', '--wrap=none'],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
stdout, _ = pandoc.communicate(text.encode('utf-8'))