From 338de6715d72bf436f434ff85edea16a3e9fb96c Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Wed, 13 Nov 2013 17:47:09 -0500 Subject: [PATCH] Fix broken html to markdown conversion on Linux. (imported from commit 1b62d382e4f2b60972384a6b4b4173161ea58b73) --- zerver/lib/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index e66390ed44..e03d1f6178 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -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