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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to