diff --git a/gnome-shell/src/meson.build b/gnome-shell/src/meson.build index f936e8c642..8d4d78f05e 100644 --- a/gnome-shell/src/meson.build +++ b/gnome-shell/src/meson.build @@ -271,6 +271,7 @@ if gnomeshell_use_gresource foreach gfile: theme_gresource_files filepath = '@0@'.format(gfile) + preprocess = '' alias = filepath[0] == '/' ? '@0@'.format(gfile).split('/')[-1] : filepath if alias == 'gnome-shell@0@.css'.format(DEFAULT_GDM_VARIANT != '' ? '-' + DEFAULT_GDM_VARIANT : '') # Use Yaru files for ubuntu's special gdm @@ -282,7 +283,11 @@ if gnomeshell_use_gresource alias = 'Yaru' / alias endif - theme_gresource_files_xml += '@1@'.format(alias, gfile) + if alias.endswith('.svg') + preprocess = 'xml-stripblanks' + endif + + theme_gresource_files_xml += '@1@'.format(alias, gfile, preprocess) endforeach gnome.compile_resources(