diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-08-30 11:56:17 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-09-01 08:11:55 +0300 |
commit | 7aad14a4b6d7ef722851a8c4f9fcafa5b48666b3 (patch) | |
tree | 604c8c544701b5c5bf2eab55b9b3c62b952e9711 /scene/gui/rich_text_label.cpp | |
parent | 1c037c89d4345789c17dfa19bf1e8bd67f702f09 (diff) |
[TextServer] Add support for trimming edge spaces on line break.
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index c9a903153d..c5fe218a15 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -453,6 +453,7 @@ float RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font> case TextServer::AUTOWRAP_OFF: break; } + autowrap_flags = autowrap_flags | TextServer::BREAK_TRIM_EDGE_SPACES; // Clear cache. l.text_buf->clear(); |