mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
1609cec78c
@ -1082,9 +1082,11 @@ class BuiltinSubitems(BuiltinFormatterFunction):
|
||||
components = [item]
|
||||
try:
|
||||
if ei == 0:
|
||||
rv.add('.'.join(components[si:]))
|
||||
t = '.'.join(components[si:]).strip()
|
||||
else:
|
||||
rv.add('.'.join(components[si:ei]))
|
||||
t = '.'.join(components[si:ei]).strip()
|
||||
if t:
|
||||
rv.add(t)
|
||||
except:
|
||||
pass
|
||||
return ', '.join(sorted(rv, key=sort_key))
|
||||
|
Loading…
x
Reference in New Issue
Block a user