Fix tests and clean up a couple of minor things in HTML generator

This commit is contained in:
Veronica K. B. Olsen
2021-01-26 13:12:38 +01:00
parent f21cff335b
commit 94c755a0e6
7 changed files with 45 additions and 49 deletions
+3 -3
View File
@@ -295,9 +295,9 @@ class ToHtml(Tokenizer):
"""Apply HTML formatting to synopsis.
"""
if self.genMode == self.M_PREVIEW:
return "<p class='comment'><span class='synopsis'>Synopsis: </span>%s</p>\n" % tText
return "<p class='comment'><span class='synopsis'>Synopsis:</span> %s</p>\n" % tText
else:
return "<p class='synopsis'><strong>Synopsis: </strong>%s</p>\n" % tText
return "<p class='synopsis'><strong>Synopsis:</strong> %s</p>\n" % tText
def _formatComments(self, tText):
"""Apply HTML formatting to comments.
@@ -305,7 +305,7 @@ class ToHtml(Tokenizer):
if self.genMode == self.M_PREVIEW:
return "<p class='comment'>%s</p>\n" % tText
else:
return "<p class='comment'><strong>Comment: </strong>%s</p>\n" % tText
return "<p class='comment'><strong>Comment:</strong> %s</p>\n" % tText
def _formatKeywords(self, tText):
"""Apply HTML formatting to keywords.