From 92e7164773ab1a0dd438ba43fee5d3b76b28ba1a Mon Sep 17 00:00:00 2001 From: AaronBeaudoin Date: Tue, 7 Nov 2023 11:04:31 -0600 Subject: [PATCH] Fix #3104 (#3105) * Fix #3104 * Fixing tests to account for new inline styles in HTML export * Update changelog * Add Aaron Beaudoin to contributors file. --------- Co-authored-by: Darren Burns --- CHANGELOG.md | 4 ++++ CONTRIBUTORS.md | 1 + rich/_export_format.py | 2 +- tests/test_console.py | 6 +++--- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f68d33c02..3562f6df6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Adds missing parameters to Panel.fit https://github.com/Textualize/rich/issues/3142 +### Fixed + +- Ensure font is correctly inherited in exported HTML https://github.com/Textualize/rich/issues/3104 + ## [13.6.0] - 2023-09-30 ### Added diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index bff51eea3..ba8759eae 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -73,3 +73,4 @@ The following people have contributed to the development of Rich: - [James Addison](https://github.com/jayaddison) - [Pierro](https://github.com/xpierroz) - [Bernhard Wagner](https://github.com/bwagner) +- [Aaron Beaudoin](https://github.com/AaronBeaudoin) diff --git a/rich/_export_format.py b/rich/_export_format.py index 998a9b0de..e7527e52f 100644 --- a/rich/_export_format.py +++ b/rich/_export_format.py @@ -12,7 +12,7 @@ -
{code}
+
{code}
""" diff --git a/tests/test_console.py b/tests/test_console.py index a3b73793c..36d15df00 100644 --- a/tests/test_console.py +++ b/tests/test_console.py @@ -529,7 +529,7 @@ def test_export_html(): console.print("[b]foo