From cb61ff6fc8cf7ec944e69586d20e34f299c1fbae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 27 Feb 2021 12:59:56 +0100 Subject: [PATCH] preserve case of field 'type' Non-standard types such as "Diplomarbeit" should not be converted to lowercase. --- pubs/endecoder.py | 1 - tests/test_endecoder.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pubs/endecoder.py b/pubs/endecoder.py index e289ddc..6c88bd7 100644 --- a/pubs/endecoder.py +++ b/pubs/endecoder.py @@ -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) diff --git a/tests/test_endecoder.py b/tests/test_endecoder.py index 858213f..3e81e8e 100644 --- a/tests/test_endecoder.py +++ b/tests/test_endecoder.py @@ -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"""