Skip to content

Commit

Permalink
Add missing double quote to DOCTYPE property
Browse files Browse the repository at this point in the history
This fixes an XML parser error with lxml 5.1.0
  • Loading branch information
smkent authored and yaqwsx committed Mar 25, 2024
1 parent 22dcffb commit 8f54953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcbdraw/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def empty_svg(**attrs: str) -> etree.ElementTree:
# version of etree is widerly available.
document = etree.ElementTree(etree.fromstring(
"""<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
width="29.7002cm" height="21.0007cm" viewBox="0 0 116930 82680 ">
<title>Picture generated by PcbDraw </title>
Expand Down

0 comments on commit 8f54953

Please sign in to comment.