diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bb997933..e14a3690c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Change SVG export to create a simpler SVG +- Fix render_lines crash when render height was negative https://github.com/Textualize/rich/pull/2246 ## [12.3.0] - 2022-04-26 diff --git a/rich/console.py b/rich/console.py index 1ead4194c..2f685c875 100644 --- a/rich/console.py +++ b/rich/console.py @@ -2542,11 +2542,3 @@ def _svg_hash(svg_main_code: str) -> str: }, } ) - from rich.console import Console - from rich.padding import Padding - - console = Console() - options = console.options.update_height(1) - - padding = Padding("hello", pad=(1, 1, 1, 1)) - console.render_lines(padding, options=options)