Skip to content

Commit 0c96007

Browse files
authored
Pass the data as a string (JabRef#8923)
closes JabRef#8922
1 parent 3c2aae9 commit 0c96007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildres/linux/jabrefHost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def send_message(message):
7474

7575
def add_jabref_entry(data):
7676
"""Send string via cli as literal to preserve special characters"""
77-
cmd = str(JABREF_PATH).split() + ["--importBibtex", r"{}".format(data)]
77+
cmd = str(JABREF_PATH).split() + ["--importBibtex", r"'{}'".format(data)]
7878
logging.info("Try to execute command {}".format(cmd))
7979
response = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
8080
logging.info("Called JabRef and got: {}".format(response))

0 commit comments

Comments
 (0)