adafruit / cookiecutter-adafruit-circuitpython

Cookiecutter template for Adafruit's CircuitPython libraries.
MIT License
22 stars 37 forks source link

fix the whitespace removal on RTD badge #110

Closed askpatrickw closed 3 years ago

askpatrickw commented 3 years ago

Thanks @makermelissa for reporting this https://github.com/adafruit/Adafruit_CircuitPython_SSD1681/pull/3

Those {%- and %} to trim whitespace are confusing. ;-)

I also notice that the RTD Badge would have been included if docs was "no" and fixed that as well.

askpatrickw commented 3 years ago

No so much nesting but trimming or leaving whitespace in JINJA templates. I had never seen it before I dug into this myself. https://jinja.palletsprojects.com/en/2.11.x/templates/#whitespace-control