From 42d30f9f6a4ce93e77de84988414d3e2996ff6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Sat, 12 Nov 2022 18:49:57 +0100 Subject: [PATCH 1/3] Update HTML format (reverse pre and code tags) --- rich/_export_format.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rich/_export_format.py b/rich/_export_format.py index b79c13069..ea4020904 100644 --- a/rich/_export_format.py +++ b/rich/_export_format.py @@ -12,9 +12,9 @@ - -
{code}
-
+
+        {code}
+    
""" From b20c233faae72672764415a10f0da367d05ff75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Sat, 12 Nov 2022 19:23:27 +0100 Subject: [PATCH 2/3] fixup! Update HTML format (reverse pre and code tags) --- tests/test_console.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_console.py b/tests/test_console.py index e1aaaefd3..8c72e8da0 100644 --- a/tests/test_console.py +++ b/tests/test_console.py @@ -528,7 +528,7 @@ def test_export_html(): console = Console(record=True, width=100) console.print("[b]foo