From 2e9e236dc8865b6e2a4fd53f055499ef31dd55ac Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Wed, 6 Apr 2022 11:41:56 +0200 Subject: [PATCH] not stripping html from left CR --- offpunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offpunk.py b/offpunk.py index 0731636..53db9bf 100755 --- a/offpunk.py +++ b/offpunk.py @@ -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")