fix tab size issue

This commit is contained in:
Will McGugan 2023-08-01 16:44:57 +01:00
parent 4037906f2b
commit 720800e693
3 changed files with 11 additions and 2 deletions

View file

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [13.5.2] - 2023-08-01
### Fixed
- Fixed Text.expand_tab assertion error
## [13.5.1] - 2023-07-31
### Fixed
@ -1988,6 +1994,7 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr
- First official release, API still to be stabilized
[13.5.2]: https://github.com/textualize/rich/compare/v13.5.1...v13.5.2
[13.5.1]: https://github.com/textualize/rich/compare/v13.5.0...v13.5.1
[13.5.0]: https://github.com/textualize/rich/compare/v13.4.2...v13.5.0
[13.4.2]: https://github.com/textualize/rich/compare/v13.4.1...v13.4.2

View file

@ -2,7 +2,7 @@
name = "rich"
homepage = "https://github.com/Textualize/rich"
documentation = "https://rich.readthedocs.io/en/latest/"
version = "13.5.1"
version = "13.5.2"
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
authors = ["Will McGugan <willmcgugan@gmail.com>"]
license = "MIT"

View file

@ -819,7 +819,9 @@ class Text(JupyterMixin):
return
if tab_size is None:
tab_size = self.tab_size
assert tab_size is not None
if tab_size is None:
tab_size = 8
result = self.blank_copy()
new_text: List[Text] = []