From 0c96007c0a7e7cb317fb6296e180bfe3caa46c9f Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Thu, 23 Jun 2022 18:53:27 +0000 Subject: [PATCH] Pass the data as a string (#8923) closes https://github.com/JabRef/jabref/issues/8922 --- buildres/linux/jabrefHost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildres/linux/jabrefHost.py b/buildres/linux/jabrefHost.py index aedf2d81580..557768fc9f6 100755 --- a/buildres/linux/jabrefHost.py +++ b/buildres/linux/jabrefHost.py @@ -74,7 +74,7 @@ def send_message(message): def add_jabref_entry(data): """Send string via cli as literal to preserve special characters""" - cmd = str(JABREF_PATH).split() + ["--importBibtex", r"{}".format(data)] + cmd = str(JABREF_PATH).split() + ["--importBibtex", r"'{}'".format(data)] logging.info("Try to execute command {}".format(cmd)) response = subprocess.check_output(cmd, stderr=subprocess.STDOUT) logging.info("Called JabRef and got: {}".format(response))