From 92cbfee0d020ef31c5a82835d85232c51cd2a373 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 26 Oct 2023 14:56:09 +0100 Subject: [PATCH] [Debg] in toXML, dump the JSON as multi-line string with indentation the table is for debugging, so let's make it easier for human-beings to read its content when dumped to TTX --- Lib/fontTools/ttLib/tables/D__e_b_g.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/D__e_b_g.py b/Lib/fontTools/ttLib/tables/D__e_b_g.py index ff64a9b51..54449a5fd 100644 --- a/Lib/fontTools/ttLib/tables/D__e_b_g.py +++ b/Lib/fontTools/ttLib/tables/D__e_b_g.py @@ -11,7 +11,7 @@ class table_D__e_b_g(DefaultTable.DefaultTable): return json.dumps(self.data).encode("utf-8") def toXML(self, writer, ttFont): - writer.writecdata(json.dumps(self.data)) + writer.writecdata(json.dumps(self.data, indent=2)) def fromXML(self, name, attrs, content, ttFont): self.data = json.loads(content)