Mercurial > piecrust2
diff piecrust/rendering.py @ 457:7d868afc6791
rendering: Truly skip formatters that are not enabled.
This make `smartypants` work as expected.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 09 Jul 2015 21:23:01 -0700 |
parents | 96d363e2da4b |
children | 16e705c58cae |
line wrap: on
line diff
--- a/piecrust/rendering.py Thu Jul 09 21:21:40 2015 -0700 +++ b/piecrust/rendering.py Thu Jul 09 21:23:01 2015 -0700 @@ -382,6 +382,8 @@ format_count = 0 format_name = format_name or app.config.get('site/default_format') for fmt in app.plugin_loader.getFormatters(): + if not fmt.enabled: + continue if fmt.FORMAT_NAMES is None or format_name in fmt.FORMAT_NAMES: with app.env.timerScope(fmt.__class__.__name__): txt = fmt.render(format_name, txt)