1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 05:22:40 +02:00

path: Update SVG tag when exporting paths

Per Martin Owens of Inkscape and Jonathan Watt,
one of the SVG specification editors
(https://jwatt.org/svg/authoring/#doctype-declaration),
we should not export the DTD with the GimpPath SVG.
This patch also adds an explicit SVG version to the
<svg> tag.
This commit is contained in:
Alx Sa
2025-09-15 17:28:33 +00:00
parent 602300ec8e
commit bc7cc0b698

View File

@@ -144,10 +144,9 @@ gimp_path_export (GimpImage *image,
g_string_append_printf (str,
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 20010904//EN\"\n"
" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n"
"\n"
"<svg xmlns=\"http://www.w3.org/2000/svg\"\n");
"<svg xmlns=\"http://www.w3.org/2000/svg\"\n"
" xmlns:svg=\"http://www.w3.org/2000/svg\"\n"
" version=\"1.1\"\n");
g_string_append (str, " ");
gimp_path_export_image_size (image, str);