not stripping html from left CR

This commit is contained in:
Lionel Dricot 2022-04-06 11:41:56 +02:00
parent 292e53b031
commit 2e9e236dc8
1 changed files with 1 additions and 1 deletions

View File

@ -1080,7 +1080,7 @@ class HtmlRenderer(AbstractRenderer):
return ansi_img
def sanitize_string(string):
#never start with a "\n"
string = string.lstrip("\n")
#string = string.lstrip("\n")
string = string.replace("\r","").replace("\n", " ").replace("\t"," ")
endspace = string.endswith(" ") or string.endswith("\xa0")
startspace = string.startswith(" ") or string.startswith("\xa0")