From 8115cc6ab02584cf97485b0e96bdbd7a04af880e Mon Sep 17 00:00:00 2001 From: Yaw Anokwa Date: Fri, 20 Apr 2018 08:27:06 -0700 Subject: [PATCH] No pretty print to save space --- xlsform_app/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlsform_app/views.py b/xlsform_app/views.py index e35624a..0b08081 100644 --- a/xlsform_app/views.py +++ b/xlsform_app/views.py @@ -46,7 +46,7 @@ def json_workbook(request): json_survey = xls2json.workbook_to_json(json.loads(request.POST['workbookJson']), form_name=form_name, warnings=warningsList) survey = pyxform.create_survey_element_from_dict(json_survey) - survey.print_xform_to_file(out_path, warnings=warningsList) + survey.print_xform_to_file(out_path, warnings=warningsList, pretty_print=False) except Exception as e: error = str(e) return HttpResponse(json.dumps({ @@ -104,7 +104,7 @@ def index(request): warnings = [] json_survey = xls2json.parse_file_to_json(xls_path, warnings=warnings) survey = pyxform.create_survey_element_from_dict(json_survey) - survey.print_xform_to_file(xml_path, warnings=warnings) + survey.print_xform_to_file(xml_path, warnings=warnings, pretty_print=False) if has_external_choices(json_survey): # Create a csv for the external choices