De-indent the code a bit

This commit is contained in:
Sybren A. Stüvel 2018-07-13 17:02:47 +02:00
parent 0fdcbc3947
commit 61278730c6

View File

@ -417,8 +417,10 @@ def parse_markdown(node, original=None):
def find_markdown_fields(schema, node): def find_markdown_fields(schema, node):
"""Find and process all makrdown validated fields.""" """Find and process all makrdown validated fields."""
for k, v in schema.items(): for k, v in schema.items():
if isinstance(v, dict): if not isinstance(v, dict):
if 'validator' in v and 'markdown' == v['validator']: continue
if v.get('validator') == 'markdown':
# If there is a match with the validator: markdown pair, assign the sibling # If there is a match with the validator: markdown pair, assign the sibling
# property (following the naming convention _<property>_html) # property (following the naming convention _<property>_html)
# the processed value. # the processed value.