SVG Save As 'SVG Code...' not same as marked up saved SVG. This now matches Export As SVG
The content saved when you Save As... SVG is different in 28.5 to 28.3. When you click SVG Code... the text file preview matches that of the old version. Example file header:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 28.5.0, SVG Export Plug-In . SVG Version: 9.03 Build 54727) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 2255 692" style="enable-background:new 0 0 2255 692;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#000000;stroke-miterlimit:10;}
.st1{fill:#FFFFFF;stroke:#000000;stroke-miterlimit:10;}
</style>
When you actually save this with OK it changes to :
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 2255 692">
<defs>
<style>
.cls-1 {
fill: #fff;
}
.cls-1, .cls-2 {
stroke: #000;
stroke-miterlimit: 10;
}
.cls-2 {
fill: none;
}
</style>
This is the same format you get on File Export, Export As SVG.
I now have to copy and paste the SVG code from the preview when clicking 'SVG Codes...' instead of being able to save as SVG.
I need the format using the style tags in SVG and the stX CSS for my use case.
Clearly there is an issue when the save preview and the actual save result in a different structure.
This change is intentional. The team aims to improve the way SVG is generated (speed, size, redundancy, etc.) and merge current both code branches into one.
Since some workflows heavily rely on the way the code structure is organized, the team tries to gather feedback on it.
Please describe what engine changes affect you and why.
-
Chantal Galvez Omaña commented
This also present on 28.6 and it seems to affect copy&paste of text boxes.
On 28.6 if 'Export for Screen' SVG Settings has 'Font: Convert to Outlines' , when copy and pasting text boxes within illustrator, they will now paste as outlines.
On 28.3, even if the same option was set for 'Export for Screen', copy and pasting text boxes within illustrator results on expected editable textboxes.