mirror of
https://github.com/Textualize/rich.git
synced 2025-12-23 07:08:35 +00:00
fix tab size issue
This commit is contained in:
parent
4037906f2b
commit
720800e693
3 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue