Browse Source

sorted already retrieves the keys

pull/236/head
Oliverpool 8 years ago
parent
commit
ee3c4c1038
  1. 2
      patacrep/index.py

2
patacrep/index.py

@ -194,6 +194,6 @@ class Index:
def entries_to_str(self): def entries_to_str(self):
"""Return the LaTeX code corresponding to the index.""" """Return the LaTeX code corresponding to the index."""
string = "" string = ""
for letter in sorted(self.data.keys()): for letter in sorted(self.data):
string += self.idxblock_to_str(letter, self.data[letter]) + EOL string += self.idxblock_to_str(letter, self.data[letter]) + EOL
return string return string

Loading…
Cancel
Save