We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be76438 commit f150da7Copy full SHA for f150da7
README.rst
@@ -139,6 +139,8 @@ v0.12.0
139
~~~~~~~
140
141
* Removed `writer_options` from `barcode.get`. This parameter was not used.
142
+* Add a ``with_doctype`` flag to ``SVGWriter``. Set this to false to avoid including a
143
+ ``DOCTYPE`` in the resulting SVG.
144
145
v0.11.0
146
barcode/writer.py
@@ -31,7 +31,7 @@ def _set_attributes(element, **attributes):
31
element.setAttribute(key, value)
32
33
34
-def create_svg_object(with_doctype):
+def create_svg_object(with_doctype=False):
35
imp = xml.dom.getDOMImplementation()
36
doctype = imp.createDocumentType(
37
'svg', '-//W3C//DTD SVG 1.1//EN',
0 commit comments