mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user