-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rich: svg: workaround truncated last captured output line
Workaround upstream rich library issue 3576: Underscores on the last captured line are clipped when exporting to SVG. The main <clipPath> height computed by the rich library in Console.export_svg() is a bit too small, and the bottom of the last captured output line may be truncated, depending on the font and the printed characters (e.g. underscores, but also the bottom of the letter 'y'). This workaround adds the bottom padding to the height computed by the rich library. Ref: - #8 - Textualize/rich#3576
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters