From: Matthias Clasen Date: Sun, 19 Sep 2021 12:26:14 +0000 (-0400) Subject: resources: Treat svgs as xml X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d94a4fcc88880f42684b6eebdfd80c43b62329f;p=gtk4.git resources: Treat svgs as xml They can have their whitespace removed just the same. --- diff --git a/gtk/gen-gtk-gresources-xml.py b/gtk/gen-gtk-gresources-xml.py index 81c06637bc..179761a154 100644 --- a/gtk/gen-gtk-gresources-xml.py +++ b/gtk/gen-gtk-gresources-xml.py @@ -55,7 +55,7 @@ for f in get_files('theme/Default/assets', '.png'): xml += '\n' for f in get_files('theme/Default/assets', '.svg'): - xml += ' theme/Default/assets/{0}\n'.format(f) + xml += ' theme/Default/assets/{0}\n'.format(f) for f in get_files('theme/Default/assets-hc', '.png'): xml += ' theme/Default/assets-hc/{0}\n'.format(f) @@ -63,10 +63,10 @@ for f in get_files('theme/Default/assets-hc', '.png'): xml += '\n' for f in get_files('theme/Default/assets-hc', '.svg'): - xml += ' theme/Default/assets-hc/{0}\n'.format(f) + xml += ' theme/Default/assets-hc/{0}\n'.format(f) for f in get_files('ui', '.ui'): - xml += ' ui/{0}\n'.format(f) + xml += ' ui/{0}\n'.format(f) xml += '\n' @@ -77,7 +77,7 @@ for s in ['16x16', '32x32', '64x64', 'scalable']: for f in get_files(icons_dir, '.png'): xml += ' icons/{0}/{1}/{2}\n'.format(s,c,f) for f in get_files(icons_dir, '.svg'): - xml += ' icons/{0}/{1}/{2}\n'.format(s,c,f) + xml += ' icons/{0}/{1}/{2}\n'.format(s,c,f) for f in get_files('inspector', '.ui'): xml += ' inspector/{0}\n'.format(f)