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:
parent
732e92fec0
commit
397628e96f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user