From e85dd38a01f95cc2b938b4d73f81881f8553d913 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Tue, 24 Jan 2017 15:21:05 +0000 Subject: [PATCH] Revert c043cfb and explicitly use newlinestr='\n' to fix failing Windows tests --- Tests/ttLib/tables/data/ttProgram.ttx | 2 +- Tests/ttLib/tables/ttProgram_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/ttLib/tables/data/ttProgram.ttx b/Tests/ttLib/tables/data/ttProgram.ttx index 26f6960f9..7a99efde9 100644 --- a/Tests/ttLib/tables/data/ttProgram.ttx +++ b/Tests/ttLib/tables/data/ttProgram.ttx @@ -1624,4 +1624,4 @@ IP[ ] /* InterpolatePts */ MDAP[1] /* MoveDirectAbsPt */ ENDF[ ] /* EndFunctionDefinition */ - \ No newline at end of file + diff --git a/Tests/ttLib/tables/ttProgram_test.py b/Tests/ttLib/tables/ttProgram_test.py index 384cefba8..9a7d232c2 100644 --- a/Tests/ttLib/tables/ttProgram_test.py +++ b/Tests/ttLib/tables/ttProgram_test.py @@ -106,7 +106,7 @@ class ProgramTest(unittest.TestCase): p.fromBytecode(BYTECODE) ttfont = TestFont() buf = UnicodeIO() - writer = XMLWriter(buf) + writer = XMLWriter(buf, newlinestr='\n') try: p.toXML(writer, ttfont) finally: