Mercurial > piecrust2
changeset 143:5b12c1d96523
Use ordered dictionaries to preserve priorities between auto-formats.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 29 Nov 2014 18:34:53 -0800 |
parents | 0bdd938d6b9f |
children | 8d16ca75075f |
files | piecrust/app.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/app.py Sat Nov 29 18:33:29 2014 -0800 +++ b/piecrust/app.py Sat Nov 29 18:34:53 2014 -0800 @@ -112,10 +112,10 @@ 'timezone': False, 'locale': False, 'date_format': DEFAULT_DATE_FORMAT, - 'auto_formats': { - 'html': '', - 'md': 'markdown', - 'textile': 'textile'}, + 'auto_formats': collections.OrderedDict([ + ('html', ''), + ('md', 'markdown'), + ('textile', 'textile')]), 'default_auto_format': 'md', 'pagination_suffix': '/%num%', 'plugins_sources': [DEFAULT_PLUGIN_SOURCE],