projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7afa54
)
builder: Drop empty text chunks when precompiling
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Dec 2021 06:06:05 +0000
(
01:06
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Dec 2021 06:21:06 +0000
(
01:21
-0500)
These don't add any value either.
gtk/gtkbuilderprecompile.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbuilderprecompile.c
b/gtk/gtkbuilderprecompile.c
index 5128f3ab4b4b136649f698ba3b8b1f2a048a79ae..398fd75eb2b6adfb5acdb001b743005991c4b2dd 100644
(file)
--- a/
gtk/gtkbuilderprecompile.c
+++ b/
gtk/gtkbuilderprecompile.c
@@
-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;