# HG changeset patch # User Ludovic Chabant # Date 1417314893 28800 # Node ID 5b12c1d965236405ffc30c5d81f5fb7ba9d0deac # Parent 0bdd938d6b9fca860427f8c4672a9bfe015b78e0 Use ordered dictionaries to preserve priorities between auto-formats. diff -r 0bdd938d6b9f -r 5b12c1d96523 piecrust/app.py --- 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],