Skip to content

Commit f150da7

Browse files
author
Hugo Osvaldo Barrera
committed
Add with_doctype to the changelog
1 parent be76438 commit f150da7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ v0.12.0
139139
~~~~~~~
140140

141141
* 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.
142144

143145
v0.11.0
144146
~~~~~~~

barcode/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _set_attributes(element, **attributes):
3131
element.setAttribute(key, value)
3232

3333

34-
def create_svg_object(with_doctype):
34+
def create_svg_object(with_doctype=False):
3535
imp = xml.dom.getDOMImplementation()
3636
doctype = imp.createDocumentType(
3737
'svg', '-//W3C//DTD SVG 1.1//EN',

0 commit comments

Comments
 (0)