You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/12/22 07:14:43 UTC
[GitHub] [airflow] uranusjr commented on issue #28280: Inconsistent handling of newlines in tasks
uranusjr commented on issue #28280:
URL: https://github.com/apache/airflow/issues/28280#issuecomment-1362495682
I agree, while treating line endings verbatim is a technically a good solution, it would confuse most users too much to be worthwhile. Note that _Python_ also does the same when it reads files for the same reason: https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files
Perhaps a better solution would be to allos _per-field_ specification. One simple way would be to accept passing a `jinja2.Template` to a templated field directly, e.g.
```python
BashOperator(
bash_command=jinja2.Template("...", newline_sequence="\r"),
)
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org