1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-21 09:59:10 +03:00

Merge pull request #182 from amarunko/serializer_fixes

Fixes for serializer optional section format
This commit is contained in:
Yuriy Kashnikov 2017-10-04 12:01:28 +07:00 committed by GitHub
commit 24c01a2fb3

View File

@ -250,10 +250,10 @@ open class SVGSerializer {
optionalSection += "width=\"\(w)\""
}
if let h = height {
optionalSection += "height=\"\(h)\""
optionalSection += " height=\"\(h)\""
}
if let i = id {
optionalSection += "id=\"\(i)\""
optionalSection += " id=\"\(i)\""
}
var result = [SVGDefaultHeader, optionalSection, SVGGenericEndTag].joined(separator: " ")
result += serialize(node: node, offset: 1)