mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #6394 (Series Sort in save template)
This commit is contained in:
parent
972d3e600d
commit
47e56e8cbe
@ -46,6 +46,7 @@ def authors_to_sort_string(authors):
|
|||||||
return ' & '.join(map(author_to_author_sort, authors))
|
return ' & '.join(map(author_to_author_sort, authors))
|
||||||
|
|
||||||
_title_pat = re.compile('^(A|The|An)\s+', re.IGNORECASE)
|
_title_pat = re.compile('^(A|The|An)\s+', re.IGNORECASE)
|
||||||
|
|
||||||
def title_sort(title):
|
def title_sort(title):
|
||||||
match = _title_pat.search(title)
|
match = _title_pat.search(title)
|
||||||
if match:
|
if match:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user