Changing tab characters for webclient. Resolve #2239.

This commit is contained in:
Griatch 2020-11-01 19:02:46 +01:00
parent dedb1b3d66
commit fd1ef7e9eb
3 changed files with 9 additions and 4 deletions

View file

@ -308,7 +308,7 @@ class TextToHTMLparser(object):
elif cdict["lineend"]:
return "<br>"
elif cdict["tab"]:
text = cdict["tab"].replace("\t", "&nbsp;" * self.tabstop)
text = cdict["tab"].replace("\t", "<span class=\"tabspace\">&#0009;</span>")
return text
elif cdict["space"] or cdict["spacestart"]:
text = cdict["space"]