Tell XMLWriter what newline character to use

This commit is contained in:
Jens Kutilek 2017-01-24 16:23:06 +01:00
parent ff9c046299
commit 5d3b4eb4c0

View File

@ -106,7 +106,7 @@ class ProgramTest(unittest.TestCase):
p.fromBytecode(BYTECODE) p.fromBytecode(BYTECODE)
ttfont = TestFont() ttfont = TestFont()
buf = UnicodeIO() buf = UnicodeIO()
writer = XMLWriter(buf) writer = XMLWriter(buf, newlinestr='\n')
try: try:
p.toXML(writer, ttfont) p.toXML(writer, ttfont)
finally: finally: