I\'m using jinja 2 to output a yaml file but can\'t seem to get rid of a trailing newline and the end of a for loop. Eg the below
- request: path: {{ p
For those using Flask who arrive here, these lines did the trick for me:
app = Flask(__name__) app.jinja_env.lstrip_blocks = True app.jinja_env.trim_blocks = True