diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 4deec6fc99..5de6ae2f77 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -543,7 +543,8 @@ if __name__ == "__main__": else: return str(x) - print("\n".join(json.dumps(x, default=conv) for x in logger.statements)) + for x in logger.statements: + print(json.dumps(x, default=conv)) if handler: logger.removeHandler(handler)