| Server IP : 82.208.35.60 / Your IP : 216.73.217.103 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/textproc/py-misaka/files/ |
Upload File : |
# 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)