Skip to content

Commit

Permalink
Merge pull request #4 from MolSSI/format-fix
Browse files Browse the repository at this point in the history
Removing extra braces from text output.
  • Loading branch information
emarinri authored Dec 7, 2020
2 parents ae4b899 + d96a6dd commit b545b3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reference_handler/reference_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def dump(self, outfile=None, fmt='bibtex', level=3):
else:
plain_text = fstring.format(**parse)

# BibTex may have lots of braces ... so remove them
plain_text = plain_text.replace('{', '').replace('}', '')

ret.append((item[0], plain_text, item[2], item[3]))
except KeyError:
pprint.pprint(parse)
Expand Down

0 comments on commit b545b3f

Please sign in to comment.