not stripping html from left CR
This commit is contained in:
parent
292e53b031
commit
2e9e236dc8
|
@ -1080,7 +1080,7 @@ class HtmlRenderer(AbstractRenderer):
|
||||||
return ansi_img
|
return ansi_img
|
||||||
def sanitize_string(string):
|
def sanitize_string(string):
|
||||||
#never start with a "\n"
|
#never start with a "\n"
|
||||||
string = string.lstrip("\n")
|
#string = string.lstrip("\n")
|
||||||
string = string.replace("\r","").replace("\n", " ").replace("\t"," ")
|
string = string.replace("\r","").replace("\n", " ").replace("\t"," ")
|
||||||
endspace = string.endswith(" ") or string.endswith("\xa0")
|
endspace = string.endswith(" ") or string.endswith("\xa0")
|
||||||
startspace = string.startswith(" ") or string.startswith("\xa0")
|
startspace = string.startswith(" ") or string.startswith("\xa0")
|
||||||
|
|
Loading…
Reference in New Issue