summaryrefslogtreecommitdiff
path: root/textproc/py-misaka/files/patch-tests_utils.py
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2019-09-06 11:55:56 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2019-09-06 11:55:56 +0000
commit3836fd5bf95bbbf5bcc5f17e85499b164a6fa698 (patch)
tree3e9956d62a8a1fed9cd4195b5210eecbf55f3e91 /textproc/py-misaka/files/patch-tests_utils.py
parent[NEW] security/suricata5: High Performance Network IDS, IPS and Security Moni... (diff)
[NEW] textproc/misaka: CFFI binding for Hoedown, a markdown parsing library
Misaka is a CFFI-based binding for Hoedown, a fast markdown processing library written in C. It features a fast HTML renderer and functionality to make custom renderers (e.g. man pages or LaTeX). WWW: https://github.com/FSX/misaka
Notes
Notes: svn path=/head/; revision=511307
Diffstat (limited to 'textproc/py-misaka/files/patch-tests_utils.py')
-rw-r--r--textproc/py-misaka/files/patch-tests_utils.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/textproc/py-misaka/files/patch-tests_utils.py b/textproc/py-misaka/files/patch-tests_utils.py
new file mode 100644
index 000000000000..a9c9d5209ca8
--- /dev/null
+++ b/textproc/py-misaka/files/patch-tests_utils.py
@@ -0,0 +1,15 @@
+# textproc/html5-tidy doesn't provide a 'tidy' binary
+# and BINARY_ALIAS doesn't work at test: time
+# TODO: Ask upstream to support a TIDY_BIN variable
+
+--- tests/utils.py.orig 2019-09-06 11:18:46 UTC
++++ tests/utils.py
+@@ -5,7 +5,7 @@ from subprocess import Popen, PIPE, STDOUT
+
+ def clean_html(dirty_html):
+ input_html = dirty_html.encode('utf-8')
+- p = Popen(['tidy', '--show-body-only', '1', '--quiet', '1', '--show-warnings', '0', '-utf8'],
++ p = Popen(['tidy5', '--show-body-only', '1', '--quiet', '1', '--show-warnings', '0', '-utf8'],
+ stdout=PIPE, stdin=PIPE, stderr=STDOUT)
+ stdout, stderr = p.communicate(input=input_html)
+