put style names in alphabetical order
svn: r19628
This commit is contained in:
parent
f471592d68
commit
7af7459eb2
@ -152,9 +152,10 @@ class StyleSheetList(object):
|
||||
xml_file.write("<?xml version=\"1.0\"?>\n")
|
||||
xml_file.write('<stylelist>\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('<sheet name="%s">\n' % escxml(name))
|
||||
for p_name in sheet.get_paragraph_style_names():
|
||||
# Get variables for substitutions
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user