mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-23 17:23:40 +01:00
Make sort_ships honor doreplacements (and .NOREPL) flag.
This commit is contained in:
parent
ed84f10bfb
commit
a0c752c61f
1 changed files with 1 additions and 1 deletions
|
|
@ -801,7 +801,7 @@ class Story(Configurable):
|
||||||
# reorder ships so b/a and c/b/a become a/b and a/b/c. Only on '/',
|
# reorder ships so b/a and c/b/a become a/b and a/b/c. Only on '/',
|
||||||
# use replace_metadata to change separator first if needed.
|
# use replace_metadata to change separator first if needed.
|
||||||
# ships=>[ ]*(/|&|&)[ ]*=>/
|
# ships=>[ ]*(/|&|&)[ ]*=>/
|
||||||
if listname == 'ships' and self.getConfig('sort_ships') and retlist:
|
if listname == 'ships' and self.getConfig('sort_ships') and doreplacements and retlist:
|
||||||
# retlist = [ '/'.join(sorted(x.split('/'))) for x in retlist ]
|
# retlist = [ '/'.join(sorted(x.split('/'))) for x in retlist ]
|
||||||
## empty default of /=>/
|
## empty default of /=>/
|
||||||
sort_ships_splits = self.getConfig('sort_ships_splits',"/=>/")
|
sort_ships_splits = self.getConfig('sort_ships_splits',"/=>/")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue