aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE.txt
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-07 00:25:59 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-07 14:26:31 +0200
commitdc9b7287cd02bc5198cc3f0bed9aab0b9554b5ca (patch)
tree9816c08213b1bf33bcdf554445936773ff1b914f /LICENSE.txt
parent7f65a5c21f83df31f3732532f0d836f32c982d67 (diff)
downloadqpdf-dc9b7287cd02bc5198cc3f0bed9aab0b9554b5ca.tar.zst
Top-level json: write incrementally
This commit just changes the order in which fields are written to the json without changing their content. All the json files in the test suite were modified with this script to ensure that we didn't get any changes other than ordering. ---------- #!/usr/bin/env python3 import json import sys def json_dumps(data): return json.dumps(data, ensure_ascii=False, indent=2, separators=(',', ': ')) for filename in sys.argv[1:]: with open(filename, 'r') as f: data = json.loads(f.read()) newdata = {} for i in ('version', 'parameters', 'pages', 'pagelabels', 'acroform', 'attachments', 'encrypt', 'outlines', 'objects', 'objectinfo'): if i in data: newdata[i] = data[i] print(json_dumps(newdata)) ----------
Diffstat (limited to 'LICENSE.txt')
0 files changed, 0 insertions, 0 deletions