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:
parent
602300ec8e
commit
bc7cc0b698
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue