mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Fix broken html to markdown conversion on Linux.
(imported from commit 1b62d382e4f2b60972384a6b4b4173161ea58b73)
This commit is contained in:
@@ -2226,8 +2226,9 @@ def convert_html_to_markdown(html):
|
|||||||
try:
|
try:
|
||||||
# A body width of 0 means do not try to wrap the text for us.
|
# A body width of 0 means do not try to wrap the text for us.
|
||||||
p = subprocess.Popen(
|
p = subprocess.Popen(
|
||||||
["html2text", "--body-width=0"], stdout=subprocess.PIPE,
|
[command, "--body-width=0"], stdout=subprocess.PIPE,
|
||||||
stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
|
stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
break
|
||||||
except OSError:
|
except OSError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user