From 1c76170469d1d5d43e53bd0dcd36b8b3a7da95c5 Mon Sep 17 00:00:00 2001
From: Ze'ev <114545290+thisiszeev@users.noreply.github.com>
Date: Wed, 10 Jul 2024 20:57:13 +0200
Subject: [PATCH 1/2] Commented out line 118
This ensures
remains inline. However
will still render as a separate block.
---
tkhtmlview/html_parser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tkhtmlview/html_parser.py b/tkhtmlview/html_parser.py
index 98d35de..2b60629 100644
--- a/tkhtmlview/html_parser.py
+++ b/tkhtmlview/html_parser.py
@@ -115,7 +115,7 @@ class StyleTextDecoration:
Tag.DIV,
Tag.P,
Tag.PRE,
- Tag.CODE,
+ #Tag.CODE,
Tag.TABLE,
Tag.TR,
)
From d0ccc6b61da777aa58ca2561081041dd17724804 Mon Sep 17 00:00:00 2001
From: Ze'ev <114545290+thisiszeev@users.noreply.github.com>
Date: Wed, 10 Jul 2024 21:37:01 +0200
Subject: [PATCH 2/2] Fixed trailing space after closing tags.
Line 649 was inserting a trailing space after a closing tag. This is creating spaces where there shouldn't be spaces. I have removed the space.
---
tkhtmlview/html_parser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tkhtmlview/html_parser.py b/tkhtmlview/html_parser.py
index 2b60629..79e2d68 100644
--- a/tkhtmlview/html_parser.py
+++ b/tkhtmlview/html_parser.py
@@ -646,7 +646,7 @@ def handle_data(self, data):
data = data.lstrip()
data = data.replace("\n", " ").replace("\t", " ")
- data = f"{data} " # FIXME: attaching a space in blind is wrong
+ data = f"{data}" # FIXME: attaching a space in blind is wrong - SPACE REMOVED
data = self._remove_multi_spaces(data)
if len(self.html_tags) and self.html_tags[-1] in (
HTML.Tag.UL,