diff --git a/tools/check b/tools/check index a57169695bfd22aa1569aa2abbb40ed813a85a69..23261b6a722942ca3df16c5fca7534c0d84c5b0e 100755 --- a/tools/check +++ b/tools/check @@ -426,14 +426,13 @@ class ReferencePageValidator(MarkdownValidator): ```definition_lists``` extension. That syntax isn't supported by the CommonMark parser, so we identify - terms manually.""" - glossary_keyword = glossary_entry[0] + terms manually.""" if len(glossary_entry) < 2: logging.error( "In {0}:" - "Glossary entry \"{}\" must have at least two lines- " + "Glossary entry must have at least two lines- " "a term and a definition.".format( - glossary_keyword, self.filename)) + self.filename)) return False entry_is_valid = True @@ -442,19 +441,17 @@ class ReferencePageValidator(MarkdownValidator): if not re.match("^: ", line): logging.error( "In {0}:" - "At glossary entry \"{}\" " "First line of definition must " "start with ': '.".format( - glossary_keyword, self.filename)) + self.filename)) entry_is_valid = False elif line_index > 1: if not re.match("^ ", line): logging.error( "In {0}:" - "At glossary entry \"{}\" " "Subsequent lines of definition must " "start with ' '.".format( - glossary_keyword, self.filename)) + self.filename)) entry_is_valid = False return entry_is_valid