Fix broken html to markdown conversion on Linux.

(imported from commit 1b62d382e4f2b60972384a6b4b4173161ea58b73)
This commit is contained in:
Jessica McKellar
2013-11-13 17:47:09 -05:00
parent 0175440afc
commit 338de6715d

View File

@@ -2226,8 +2226,9 @@ def convert_html_to_markdown(html):
try:
# A body width of 0 means do not try to wrap the text for us.
p = subprocess.Popen(
["html2text", "--body-width=0"], stdout=subprocess.PIPE,
[command, "--body-width=0"], stdout=subprocess.PIPE,
stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
break
except OSError:
continue