From 4634768d3fac337aad299f35208f190e01a863fe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 27 Jun 2019 06:15:37 +0530 Subject: [PATCH] Fix a regression that broke the per_lang_title_sort_articles tweak There must not be blank lines in tweak definitions in default_tweaks.py Fixes #1834329 ["articles" for sort strings do not working/save](https://bugs.launchpad.net/calibre/+bug/1834329) --- resources/default_tweaks.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/resources/default_tweaks.py b/resources/default_tweaks.py index b5be5e5291..220deb3b3e 100644 --- a/resources/default_tweaks.py +++ b/resources/default_tweaks.py @@ -215,23 +215,19 @@ save_template_title_series_sorting = 'library_order' per_language_title_sort_articles = { # English 'eng' : (r'A\s+', r'The\s+', r'An\s+'), - # Esperanto 'epo': (r'La\s+', r"L'", 'L´'), - # Spanish 'spa' : (r'El\s+', r'La\s+', r'Lo\s+', r'Los\s+', r'Las\s+', r'Un\s+', r'Una\s+', r'Unos\s+', r'Unas\s+'), # French 'fra' : (r'Le\s+', r'La\s+', r"L'", u'L´', u'L’', r'Les\s+', r'Un\s+', r'Une\s+', r'Des\s+', r'De\s+La\s+', r'De\s+', r"D'", u'D´', u'L’'), - # Italian 'ita': ('Lo\\s+', 'Il\\s+', "L'", 'L´', 'La\\s+', 'Gli\\s+', 'I\\s+', 'Le\\s+', 'Uno\\s+', 'Un\\s+', 'Una\\s+', "Un'", 'Un´', 'Dei\\s+', 'Degli\\s+', 'Delle\\s+', 'Del\\s+', 'Della\\s+', 'Dello\\s+', "Dell'", 'Dell´'), - # Portuguese 'por' : (r'A\s+', r'O\s+', r'Os\s+', r'As\s+', r'Um\s+', r'Uns\s+', r'Uma\s+', r'Umas\s+', ),