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

Fixes for serializer optional section format

This commit is contained in:
Anton Marunko 2017-10-04 11:54:14 +07:00
parent 732e92fec0
commit 397628e96f

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)