Skip to content

Commit

Permalink
Merge pull request #43 from /issues/42
Browse files Browse the repository at this point in the history
allow nonstandard entries
  • Loading branch information
yymao authored Jul 8, 2024
2 parents 05911d1 + de22a96 commit df8492b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions adstex.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Project website: https://github.com/yymao/adstex
The MIT License (MIT)
Copyright (c) 2015-2023 Yao-Yuan Mao (yymao)
Copyright (c) 2015-2024 Yao-Yuan Mao (yymao)
http://opensource.org/licenses/MIT
"""
from __future__ import absolute_import, print_function
Expand All @@ -30,7 +30,7 @@
except ImportError:
from urllib import unquote

__version__ = "0.5.1"
__version__ = "0.5.2"

_this_year = date.today().year % 100
_this_cent = date.today().year // 100
Expand Down Expand Up @@ -81,11 +81,11 @@ def fixedAdsExportQuery(*args, **kwargs):


def get_bparser():
try:
mybparser = bibtexparser.bparser.BibTexParser(common_strings=True)
mybparser.bib_database.strings["june"] = "June"
except TypeError:
mybparser = bibtexparser.bparser.BibTexParser()
mybparser = bibtexparser.bparser.BibTexParser(
common_strings=True,
ignore_nonstandard_types=False,
)
mybparser.bib_database.strings["june"] = "June"
return mybparser


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Project website: https://github.com/yymao/adstex
The MIT License (MIT)
Copyright (c) 2015-2023 Yao-Yuan Mao (yymao)
Copyright (c) 2015-2024 Yao-Yuan Mao (yymao)
http://opensource.org/licenses/MIT
"""
from __future__ import absolute_import
Expand Down

0 comments on commit df8492b

Please sign in to comment.