version bump

This commit is contained in:
Will McGugan 2021-07-05 14:56:42 +01:00
parent 3cf97f151d
commit 59f699e2ed
3 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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:

View File

@ -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)]]