From 7af7459eb236661dff88c709eeedc663ce0eb63f Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 22 May 2012 22:10:12 +0000 Subject: [PATCH] put style names in alphabetical order svn: r19628 --- src/gen/plug/docgen/stylesheet.py | 3 ++- src/gui/plug/report/_styleeditor.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gen/plug/docgen/stylesheet.py b/src/gen/plug/docgen/stylesheet.py index 99afb86aa..6b6c78ddc 100644 --- a/src/gen/plug/docgen/stylesheet.py +++ b/src/gen/plug/docgen/stylesheet.py @@ -152,9 +152,10 @@ class StyleSheetList(object): xml_file.write("\n") xml_file.write('\n') - for name, sheet in self.map.iteritems(): + for name in sorted(self.map.keys()): # enable diff of archived copies if name == "default": continue + sheet = self.map[name] xml_file.write('\n' % escxml(name)) for p_name in sheet.get_paragraph_style_names(): # Get variables for substitutions diff --git a/src/gui/plug/report/_styleeditor.py b/src/gui/plug/report/_styleeditor.py index 5c6a0d51c..4d7939d9f 100644 --- a/src/gui/plug/report/_styleeditor.py +++ b/src/gui/plug/report/_styleeditor.py @@ -120,7 +120,7 @@ class StyleListDisplay(object): self.list.add(["default"]) index = 1 - for style in self.sheetlist.get_style_names(): + for style in sorted(self.sheetlist.get_style_names()): if style == "default": continue self.list.add([style])