Commit graph

58 commits

Author SHA1 Message Date
Simon Hausmann
0e16d7ef9f Fix build of tests with simple line breaker iterator
Add missing trait derivatives
2022-05-13 17:33:01 +02:00
Simon Hausmann
4765cd3c40 Fix inconsistency in line break iterators
The unicode linebreak iterator always produces a mandatory break at end
of text.  This is not only confusing, but also inconsistent with the
simple line break iterator and with trailing spaces it could cause the
line break algorithm to emit empty lines at the end of text.
2022-05-13 17:33:01 +02:00
Simon Hausmann
292db19c32 Simplify simple line break iterator
We don't need Option<char>, just a boolean is enough.
2022-05-13 17:33:01 +02:00
Simon Hausmann
2b93504b93 Fix MCU build 2022-04-14 11:31:39 +02:00
Simon Hausmann
4e18291290 Rename linebreak_ascii to linebreak_simple
It's not just strict ascii
2022-03-10 10:51:32 +01:00
Simon Hausmann
1d1b13e4d6 Clean up line break "abstraction"
Use unicode-linebreak's enum directly and ony use a custom enum in the fake
module.
2022-03-10 10:51:32 +01:00
Simon Hausmann
004a09b64d Fix incorrect comment in the "ascii" line breaker
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
2022-03-10 10:51:32 +01:00
Simon Hausmann
35f245687a Make it possible to build the text layout without unicode linebreak tables 2022-03-10 10:51:32 +01:00