builder: Drop empty text chunks when precompiling

These don't add any value either.
This commit is contained in:
Matthias Clasen 2021-12-14 01:06:05 -05:00
parent c7afa5452b
commit c5bffb9fb5

View File

@ -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;