Skip to content
Snippets Groups Projects
Commit 9668bc5b authored by Raniere Silva's avatar Raniere Silva
Browse files

Merge branch 'core' into gh-pages

parents d8b170bd c70bebd3
No related merge requests found
...@@ -565,24 +565,14 @@ class ReferencePageValidator(MarkdownValidator): ...@@ -565,24 +565,14 @@ class ReferencePageValidator(MarkdownValidator):
entry_is_valid = True entry_is_valid = True
for line_index, line in enumerate(glossary_entry): for line_index, line in enumerate(glossary_entry):
if line_index == 1: if line_index == 1 and not re.match("^: ", line):
if not re.match("^: ", line): logging.error(
logging.error( "In {0}: "
"In {0}: " "At glossary entry '{1}' "
"At glossary entry '{1}' " "First line of definition must "
"First line of definition must " "start with ': '.".format(
"start with ': '.".format( self.filename, glossary_keyword))
self.filename, glossary_keyword)) entry_is_valid = False
entry_is_valid = False
elif line_index > 1:
if not re.match("^ ", line):
logging.error(
"In {0}: "
"At glossary entry '{1}' "
"Subsequent lines of definition must "
"start with ' '.".format(
self.filename, glossary_keyword, ))
entry_is_valid = False
return entry_is_valid return entry_is_valid
def _validate_glossary(self): def _validate_glossary(self):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment