De-indent the code a bit
This commit is contained in:
parent
0fdcbc3947
commit
61278730c6
@ -417,8 +417,10 @@ def parse_markdown(node, original=None):
|
||||
def find_markdown_fields(schema, node):
|
||||
"""Find and process all makrdown validated fields."""
|
||||
for k, v in schema.items():
|
||||
if isinstance(v, dict):
|
||||
if 'validator' in v and 'markdown' == v['validator']:
|
||||
if not isinstance(v, dict):
|
||||
continue
|
||||
|
||||
if v.get('validator') == 'markdown':
|
||||
# If there is a match with the validator: markdown pair, assign the sibling
|
||||
# property (following the naming convention _<property>_html)
|
||||
# the processed value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user