Changing tab characters for webclient. Resolve #2239.
This commit is contained in:
parent
dedb1b3d66
commit
fd1ef7e9eb
3 changed files with 9 additions and 4 deletions
|
|
@ -308,7 +308,7 @@ class TextToHTMLparser(object):
|
|||
elif cdict["lineend"]:
|
||||
return "<br>"
|
||||
elif cdict["tab"]:
|
||||
text = cdict["tab"].replace("\t", " " * self.tabstop)
|
||||
text = cdict["tab"].replace("\t", "<span class=\"tabspace\">	</span>")
|
||||
return text
|
||||
elif cdict["space"] or cdict["spacestart"]:
|
||||
text = cdict["space"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue