Add properties to configure space trimming on line break.

This commit is contained in:
Pāvels Nadtočajevs 2025-03-16 13:57:01 +02:00
parent fde0616a0e
commit 2bbf0f2317
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
18 changed files with 171 additions and 30 deletions

View file

@ -2082,7 +2082,7 @@ void Tree::update_item_cell(TreeItem *p_item, int p_col) const {
}
p_item->cells.write[p_col].text_buf->add_string(valtext, font, font_size, p_item->cells[p_col].language);
BitField<TextServer::LineBreakFlag> break_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_TRIM_EDGE_SPACES;
BitField<TextServer::LineBreakFlag> break_flags = TextServer::BREAK_MANDATORY | TextServer::BREAK_TRIM_START_EDGE_SPACES | TextServer::BREAK_TRIM_END_EDGE_SPACES;
switch (p_item->cells.write[p_col].autowrap_mode) {
case TextServer::AUTOWRAP_OFF:
break;