mehmax edited a comment on pull request #17082: URL: https://github.com/apache/airflow/pull/17082#issuecomment-884718338
Hi, may I bring something up which I noticed while testing this: When I use templated files in a _PythonVirtualenvDecoratedOperator and my file contains linebreaks, json.dumps will not add add them in the UI. This is not very beautiful: Example  Can we make it so that each key in a dictionary is rendered seperately? Like this (just an Idea):  Coding I used (no optimized!): ``` if renderer in renderers: if isinstance(content, dict): logging.info(content) for key, value in content.items(): html_dict[key] = renderers[renderer](value) if isinstance(content, list): content = json.dumps(content, sort_keys=True, indent=4) html_dict[template_field] = renderers[renderer](content) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
