diff --git a/CHANGELOG.md b/CHANGELOG.md index e1add184d..fbb939d7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [13.0.0] - Unreleased +### Fixed + +- Reversed `pre` and `code` tags in base HTML format https://github.com/Textualize/rich/pull/2642 + ### Changed - Bumped minimum Python version to 3.7 https://github.com/Textualize/rich/pull/2567 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}
+    
""" 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