Merge branch 'main' into dev

This commit is contained in:
Veronica Berglyd Olsen
2023-11-05 18:54:52 +01:00
29 changed files with 576 additions and 464 deletions
+2 -2
View File
@@ -162,7 +162,7 @@ class ToHtml(Tokenizer):
pStyle = None
lines = []
for tType, tLine, tText, tFormat, tStyle in self._tokens:
for tType, nHead, tText, tFormat, tStyle in self._tokens:
# Replace < and > with HTML entities
if tFormat:
@@ -223,7 +223,7 @@ class ToHtml(Tokenizer):
hStyle = ""
if self._linkHeaders:
aNm = f"<a name='T{tLine:06d}'></a>"
aNm = f"<a name='T{nHead:04d}'></a>"
else:
aNm = ""