exclude new curriculum from substitutions
authorJan Szejko <janek37@gmail.com>
Thu, 4 Jan 2018 16:03:26 +0000 (17:03 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 4 Jan 2018 16:03:26 +0000 (17:03 +0100)
librarian/pdf.py

index 44ec644..757f168 100644 (file)
@@ -78,6 +78,7 @@ def substitute_hyphens(doc):
             DCNS("title"),
             DCNS("description"),
             DCNS("subject.curriculum"),
+            DCNS("subject.curriculum.new"),
             'www',
         ]
     )
@@ -92,6 +93,7 @@ def fix_hanging(doc):
             DCNS("title"),
             DCNS("description"),
             DCNS("subject.curriculum"),
+            DCNS("subject.curriculum.new"),
         ]
     )