     log.start "SVG symbols skin '#{@name}.svg'"
     mkdirp.sync "#{@dir}"
     fd = fs.openSync "#{@dir}/#{@name}.svg", 'w'
-    fs.writeSync fd, svg_head
+    fs.writeSync fd, svg_head + '>\n'
     fs.writeSync fd, netlistsvg_properties
     fs.writeSync fd, netlistsvg_style
     fs.writeSync fd, netlistsvg_builtins

svg_head = """
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:s="https://github.com/nturley/netlistsvg">

"""

svg_tail = """

    # Bounding box
    [minx, miny, width, height] = @_getBoundingBox(pattern)

    fs.writeSync fd, """
        #{svg_head}
             width="#{width}mm"
             height="#{height}mm"
             viewBox="0 0 #{width} #{height}">

    """
    fs.writeSync fd, pcbsvg_style

    # Pattern start
    fs.writeSync fd, """
    <g transform="translate(#{width/2}, #{height/2})">

    """

