Skip to content

Commit

Permalink
Fix ";" at the end of author field
Browse files Browse the repository at this point in the history
  • Loading branch information
Vopaaz committed Jan 16, 2019
1 parent 8d4c6a1 commit 6f6aeb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cnki2bibtex/BibTexEntries.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def generateFields(self, cnkiNetEntry):

def fixEntryDifferences(self):
if "author" in self:
self["author"] = self["author"].replace(";;"," and ").replace(";", " and ")
self["author"] = self["author"].strip(";").replace(";;"," and ").replace(";", " and ")
for fieldName, fieldContent in self.items():
self[fieldName] = fieldContent.replace(r"&",r"\&").replace(r"_",r"\_")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='cnki2bib',
version='0.1.2',
version='0.1.3',
author='Vopaaz',
author_email="liyifan945@163.com",
url="https://github.com/Vopaaz/CNKI_2_BibTeX",
Expand Down

0 comments on commit 6f6aeb4

Please sign in to comment.