Forum Discussion
I agree with you about reformmating my jinja2. I'll leave it below my response to you in case anyone wants to take a stab at fixing it.
Unfortunately, that formula doesn't work. I can't pin-point why it doesn't, I feel like it should.
This was the outcome it gave me:
------------------------------
Shane Miller
------------------------------
Here is my Pipeline and also the Jinja2 that follows:
------------------------------
Shane Miller
------------------------------
- Gary12 years agoQrew Assistant Captain
My only suggestion is to remove the line breaks from your Jinja. I'd blindly wager this might do the trick.
------------------------------
gary
------------------------------ - Gary12 years agoQrew Assistant Captain
I also found this for testing Jinja. It's pretty helpful: http://jinja.quantprogramming.com/
I tested a small portion of your code with the line breaks removed and the output was good (no line breaks).
------------------------------
gary
------------------------------- MikeTamoush2 years agoQrew Commander
Thanks for that URL Link gary! It does indeed look like taking out the line breaks will work but gosh - that certainly makes for messy code. I wonder if there are any other options where you don't end up with confusing, run on code?
------------------------------
Mike Tamoush
------------------------------- Gary12 years agoQrew Assistant Captain
Check the "Whitespace Control" section of this article. It's another way to handle line breaks while maintaining readable code.
https://jinja.palletsprojects.com/en/latest/templates/#whitespace-control
------------------------------
gary
------------------------------
- ShaneMiller12 years agoQrew Cadet
That's a nifty little site. A great recommendation, but my eyes bleed when I look at the code without breaks, haha
------------------------------
Shane Miller
------------------------------