Skip to content

Commit f559654

Browse files
inquiredbrgn
authored andcommitted
Add XML declaration to generated SVGs (dbrgn#4)
1 parent d2d5d16 commit f559654

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ current_version = 0.1.2
33
files = setup.py coverage_badge/__main__.py
44
commit = True
55
tag = True
6-

coverage_badge/templates/flat.svg

Lines changed: 1 addition & 0 deletions
Loading

example.svg

Lines changed: 1 addition & 0 deletions
Loading

tests/test_output.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_svg_output(cb, capsys):
3535
"""
3636
cb.main([])
3737
out, _ = capsys.readouterr()
38-
assert out.startswith('<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20">')
38+
assert out.startswith('<?xml version="1.0" encoding="UTF-8"?>')
39+
assert '<svg xmlns="http://www.w3.org/2000/svg" width="99" height="20">' in out
3940
assert '<text x="80" y="14">79%</text>' in out
4041
assert out.endswith('</svg>\n')

0 commit comments

Comments
 (0)