Improved the tab handling and added the same fix to the build tool

This commit is contained in:
Veronica K. B. Olsen
2020-08-18 00:21:25 +02:00
parent 10936b6910
commit 2f177c50fc
3 changed files with 47 additions and 18 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ class ToHtml(Tokenizer):
"<" : "&lt;",
">" : "&gt;",
"&" : "&amp;",
"\t" : "&emsp;"*2,
# "\t" : "!!tab!!", # "&emsp;"*2,
nwUnicode.U_ENDASH : nwUnicode.H_ENDASH,
nwUnicode.U_EMDASH : nwUnicode.H_EMDASH,
nwUnicode.U_HELLIP : nwUnicode.H_HELLIP,
@@ -77,7 +77,7 @@ class ToHtml(Tokenizer):
self.doKeywords = True
self.doComments = doComments
self.doSynopsis = doSynopsis
self.repDict["\t"] = r"!!tab!!" # The viewer replaces these
# self.repDict["\t"] = r"!!tab!!" # The viewer replaces these
self._buildRegEx()
return