Skip to content

Commit

Permalink
Pass the data as a string (#8923)
Browse files Browse the repository at this point in the history
closes #8922
  • Loading branch information
linsui authored Jun 23, 2022
1 parent 3c2aae9 commit 0c96007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildres/linux/jabrefHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0c96007

Please sign in to comment.