Process keyword flag in Tokenizer

This commit is contained in:
Veronica Berglyd Olsen
2024-10-22 19:33:05 +02:00
parent 63f9cd0bac
commit c7554f2b8d
7 changed files with 33 additions and 14 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ class ToHtml(Tokenizer):
elif tType == BlockTyp.COMMENT:
lines.append(f"<p class='comment'>{self._formatText(tText, tFormat)}</p>\n")
elif tType == BlockTyp.KEYWORD and self._doKeywords:
elif tType == BlockTyp.KEYWORD:
tag, text = self._formatKeywords(tText)
kClass = f" class='meta meta-{tag}'" if tag else ""
tTemp = f"<p{kClass}{hStyle}>{text}</p>\n"