diff --git a/ietf/utils/hedgedoc.py b/ietf/utils/hedgedoc.py index e6cb8101d..e78a6312a 100644 --- a/ietf/utils/hedgedoc.py +++ b/ietf/utils/hedgedoc.py @@ -95,8 +95,8 @@ def de_gfm(source: str): Calls de-gfm from the kramdown-rfc2629 gem. """ result = subprocess.run( - [settings.DE_GFM_BINARY,], - stdout=subprocess.PIPE, # post-Python 3.7, this can be replaced with capture_output=True + [settings.DE_GFM_BINARY, "-4"], + capture_output=True, input=source, encoding='utf8', check=True, @@ -123,4 +123,4 @@ class NoteNotFound(NoteError): class InvalidNote(NoteError): - default_message = 'Note data invalid' \ No newline at end of file + default_message = 'Note data invalid'