mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 14:00:10 +00:00
builder: Drop empty text chunks when precompiling
These don't add any value either.
This commit is contained in:
parent
c7afa5452b
commit
c5bffb9fb5
@ -314,6 +314,9 @@ record_text (GMarkupParseContext *context,
|
||||
RecordData *data = user_data;
|
||||
RecordDataString *string;
|
||||
|
||||
if (text_len == 0)
|
||||
return;
|
||||
|
||||
if (!data->current->preserve_whitespace && is_whitespace (text, text_len))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user