mirror of https://github.com/Textualize/rich.git
version bump
This commit is contained in:
parent
3cf97f151d
commit
59f699e2ed
|
@ -5,7 +5,7 @@ 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).
|
||||
|
||||
## [10.4.1] - Unreleased
|
||||
## [10.5.0] - 2021-05-07
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ class Segment(NamedTuple):
|
|||
_Segment(before[: pos - 1] + " ", style, control),
|
||||
_Segment(" " + text[pos:], style, control),
|
||||
)
|
||||
|
||||
# elif cell_pos > cut:
|
||||
# while True:
|
||||
# cell_pos -= cell_size(text[pos])
|
||||
|
@ -527,10 +528,7 @@ class Segment(NamedTuple):
|
|||
if split_segments:
|
||||
yield split_segments[:]
|
||||
return
|
||||
|
||||
yield []
|
||||
# if split_segments:
|
||||
# yield split_segments[:]
|
||||
|
||||
|
||||
class Segments:
|
||||
|
|
|
@ -151,7 +151,7 @@ def test_divide():
|
|||
]
|
||||
|
||||
assert list(Segment.divide(segments, [])) == []
|
||||
assert list(Segment.divide([], [1])) == []
|
||||
assert list(Segment.divide([], [1])) == [[]]
|
||||
|
||||
assert list(Segment.divide(segments, [1])) == [[Segment("H", bold)]]
|
||||
|
||||
|
|
Loading…
Reference in New Issue