forked from AuroraMiddleware/gtk
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