comparison piecrust/formatting/base.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 f485ba500df3
children
comparison
equal deleted inserted replaced
456:5e902e228053 457:7d868afc6791
8 FORMAT_NAMES = None 8 FORMAT_NAMES = None
9 OUTPUT_FORMAT = None 9 OUTPUT_FORMAT = None
10 10
11 def __init__(self): 11 def __init__(self):
12 self.priority = PRIORITY_NORMAL 12 self.priority = PRIORITY_NORMAL
13 self.enabled = True
13 14
14 def initialize(self, app): 15 def initialize(self, app):
15 self.app = app 16 self.app = app
16 17
17 def render(self, format_name, txt): 18 def render(self, format_name, txt):