Skip to content

Releases: Textualize/rich

Fix for splitting segments

06 Jan 14:23
Compare
Choose a tag to compare

Fix for an issue where Segment.split_cells produced the wrong result.

Mostly a hotfix for the benefit of Textual.

[13.0.1] - 2023-01-06

Fixed

  • Fixed issue with Segment.split_cells for mixed single and double cell widths

Dropped Python3.6 support

30 Dec 12:55
d14b304
Compare
Choose a tag to compare

Some relatively minor fixes and improvements. The most significant update (and the reason for the major version bump) is that Rich has dropped Python3.6 support.

If you are a Python3.6 user and can't upgrade for whatever reason, pin to version 12.6.0.

[13.0.0] - 2022-12-30

Fixed

  • Reversed pre and code tags in base HTML format #2642
  • Improved detection of attrs library, that isn't confused by the presence of the attr library.
  • Fixed issue with locals_max_length parameter not being respected in Traceback #2649
  • Handling of broken fileno made more robust. Fixes #2645
  • Fixed missing fileno on FileProxy

Changed

  • Bumped minimum Python version to 3.7 #2567
  • Pretty-printing of "tagged" __repr__ results is now greedy when matching tags #2565
  • progress.track now supports deriving total from __length_hint__

Added

  • Add type annotation for key_separator of pretty.Node #2625

The FORCE_COLOR edition

02 Oct 16:28
cc01070
Compare
Choose a tag to compare

NOTE: 12.6.0 may be the last version to support Python3.6. The next version will be 13.0.0, and will be Python3.7+

[12.6.0] - 2022-10-02

Added

Fixed

  • Handle stdout/stderr being null #2513
  • Fix NO_COLOR support on legacy Windows #2458
  • Fix pretty printer handling of cyclic references #2524
  • Fix missing mode property on file wrapper breaking uploads via requests #2495
  • Fix mismatching default value of parameter ensure_ascii #2538
  • Remove unused height parameter in Layout class #2540
  • Fixed exception in Syntax.rich_measure for empty files

Changed

  • Removed border from code blocks in Markdown

v12.5.1: Merge pull request #2387 from Textualize/type-alias

11 Jul 14:37
a6f2d84
Compare
Choose a tag to compare

[12.5.1] - 2022-07-11

Fixed

  • Fixed missing typing extensions dependency on 3.9 #2386

v12.5.0: Merge pull request #2385 from Textualize/divide

11 Jul 13:55
1de9471
Compare
Choose a tag to compare

[12.5.0] - 2022-07-11

Added

  • Environment variables JUPYTER_COLUMNS and JUPYTER_LINES to control width and height of console in Jupyter
  • Markdown friendly Box style, MARKDOWN, for rendering tables ready to copy into markdown files
  • inspect will prefix coroutine functions with async def

Changed

  • Default width of Jupyter console size is increased to 115
  • Optimized Segment.divide
  • Style.__add__ will no longer return NotImplemented
  • Remove rich._lru_cache

Fixed

  • Fix Rich clobbering cursor style on Windows #2339
  • Fix text wrapping edge case #2296
  • Allow exceptions that are raised while a Live is rendered to be displayed and/or processed #2305
  • Fix crashes that can happen with inspect when docstrings contain some special control codes #2294
  • Fix edges used in first row of tables when show_header=False #2330
  • Fix interaction between Capture contexts and Console(record=True) #2343
  • Fixed hash issue in Styles class #2346
  • Fixed bug in Segment.split_and_crop_lines

v12.4.4: Merge pull request #2290 from Textualize/more-svg-tweaks

24 May 06:41
aa7926c
Compare
Choose a tag to compare

[12.4.4] - 2022-05-24

Changed

  • Added clipping per line to SVG output to avoid box characters overlapping
  • Optimized SVG output

v12.4.3: Merge pull request #2289 from Textualize/svg-tweak

23 May 16:41
9bfb619
Compare
Choose a tag to compare

[12.4.3] - 2022-05-23

Changed

  • Further tweaks to SVG character matrix
  • Added clip rect to SVG to prevent box characters overlapping bottom of terminal

Fix SVG output on Firefox

23 May 08:58
58bfa48
Compare
Choose a tag to compare

[12.4.2] - 2022-05-23

Fixed

  • Fix for SVG on Firefox

Changed

  • Removed excess margin from SVG, tweaked cell sizes to better render block characters

SVG Redux Redux

08 May 17:02
0fd6bc5
Compare
Choose a tag to compare

A fix and further enhancements to the SVG export.

Default color scheme is now dimmed Monokai, and there is a keyline around the terminal so it looks distinct against a dark background.

Rich SVG example

[12.4.1] - 2022-05-08

Fixed

  • Fix for default background color in SVG export #2260

Changed

  • Added a keyline around SVG terminals which is visible on dark backgrounds

SVG Redux

07 May 14:57
2c93dce
Compare
Choose a tag to compare

This release has a major change to the SVG export. It is now a simpler design, and will render outside of a browser.

deniro

Screenshot 2022-05-07 at 15 57 54

[12.4.0] - 2022-05-07

Changed

  • Rebuilt SVG export to create a simpler SVG that is more portable
  • Fix render_lines crash when render height was negative #2246

Added

  • Add padding to Syntax constructor #2247