From d4ebbe41e8fdb79bd2a12ee9b6aea702d2723548 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Tue, 3 May 2022 18:04:48 -0500 Subject: [PATCH] feat: improve notes imports by using de-gfm -4. Related to #3851. (#3930) --- ietf/utils/hedgedoc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'