From a0c752c61f0a8f45b27aa6fbf7243cbce5df61b8 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 18 Nov 2015 12:51:53 -0600 Subject: [PATCH] Make sort_ships honor doreplacements (and .NOREPL) flag. --- fanficfare/story.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 74221754..3f83a87b 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -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 '/', # use replace_metadata to change separator first if needed. # 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 ] ## empty default of /=>/ sort_ships_splits = self.getConfig('sort_ships_splits',"/=>/")