6701eb67f909 v0.2.2
Sort chapters properly.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Wed, 10 Jul 2013 20:06:31 -0400 |
parents | 341cf2a97a8f |
children | 9adc54a4c40c |
branches/tags | v0.2.2 |
files | d/base.py setup.py |
Changes
--- a/d/base.py Wed Jul 10 18:47:38 2013 -0400 +++ b/d/base.py Wed Jul 10 20:06:31 2013 -0400 @@ -85,7 +85,7 @@ return dirname(j(source, '..')).lower() def _find_chapters(source): - for filename in os.listdir(source): + for filename in sorted(os.listdir(source)): name, ext = os.path.splitext(filename) if ext[1:] in extensions: if name not in ['footer', 'index']: