Merge pull request #262 from dotlambda/type-case

preserve case of field 'type'
This commit is contained in:
Fabien C. Y. Benureau 2021-11-21 20:10:11 +01:00 committed by GitHub
commit ccead4945d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -51,7 +51,6 @@ def customizations(record):
"""
# record = bp.customization.convert_to_unicode(record) # transform \& into & ones, messing-up latex
record = bp.customization.type(record)
record = bp.customization.author(record)
record = bp.customization.editor(record)
record = bp.customization.keyword(record)

View File

@ -61,7 +61,7 @@ class TestEnDecode(unittest.TestCase):
"""Test that multiple encode/decode step preserve data"""
decoder = endecoder.EnDecoder()
entry = decoder.decode_bibdata(bibtex_raw0)
self.assertEqual(entry['Page99']['type'], "technical report")
self.assertEqual(entry['Page99']['type'], "Technical Report")
def test_endecode_bibtex_BOM(self):
"""Test that bibtexparser if fine with BOM-prefixed data"""