Tell XMLWriter what newline character to use
This commit is contained in:
parent
ff9c046299
commit
5d3b4eb4c0
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user