Fix profunc parse and html tabs. Resolve #2246
This commit is contained in:
parent
988f84de2d
commit
0e8c979134
3 changed files with 12 additions and 9 deletions
|
|
@ -308,7 +308,7 @@ class TextToHTMLparser(object):
|
|||
elif cdict["lineend"]:
|
||||
return "<br>"
|
||||
elif cdict["tab"]:
|
||||
text = cdict["tab"].replace("\t", "<span class=\"tabspace\">	</span>")
|
||||
text = cdict["tab"].replace("\t", " " + " " * (self.tabstop - 1))
|
||||
return text
|
||||
elif cdict["space"] or cdict["spacestart"]:
|
||||
text = cdict["space"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue