mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00

XML/Plain text Serializer uses line break segmenter to wrap text. New segmenter that is compatible with UAX#14 has different rules for old segmenter. Old segmenter have break opportunity before ASCII space, but UAX#14 doesn't have it (https://www.unicode.org/reports/tr14/#LB7). So we have to trim ASCII space at the tail for text wrap. Depends on D167677 Differential Revision: https://phabricator.services.mozilla.com/D180773