diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-09-01 08:16:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 08:16:52 +0200 |
commit | 89f0886425eba7b3590cef0b48b1fdc55d63e2a6 (patch) | |
tree | 979bb9acfc0d2ca7175549e65e27fa7f8437c594 /scene/resources/text_paragraph.cpp | |
parent | e67c967cbcc4bc0ab20d4ae77d47d2812c6242e8 (diff) | |
parent | 7aad14a4b6d7ef722851a8c4f9fcafa5b48666b3 (diff) |
Merge pull request #65073 from bruvzg/trim_spaces
[TextServer] Add support for trimming edge spaces on line break.
Diffstat (limited to 'scene/resources/text_paragraph.cpp')
-rw-r--r-- | scene/resources/text_paragraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/text_paragraph.cpp b/scene/resources/text_paragraph.cpp index 43d3f329fa..7e9a2591e4 100644 --- a/scene/resources/text_paragraph.cpp +++ b/scene/resources/text_paragraph.cpp @@ -77,7 +77,7 @@ void TextParagraph::_bind_methods() { ClassDB::bind_method(D_METHOD("set_break_flags", "flags"), &TextParagraph::set_break_flags); ClassDB::bind_method(D_METHOD("get_break_flags"), &TextParagraph::get_break_flags); - ADD_PROPERTY(PropertyInfo(Variant::INT, "break_flags", PROPERTY_HINT_FLAGS, "Mandatory,Word Bound,Grapheme Bound,Adaptive"), "set_break_flags", "get_break_flags"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "break_flags", PROPERTY_HINT_FLAGS, "Mandatory,Word Bound,Grapheme Bound,Adaptive,Trim Spaces"), "set_break_flags", "get_break_flags"); ClassDB::bind_method(D_METHOD("set_justification_flags", "flags"), &TextParagraph::set_justification_flags); ClassDB::bind_method(D_METHOD("get_justification_flags"), &TextParagraph::get_justification_flags); |