Pēteris Caune @monkeyseemonkeydo.lv · Sep 30

I made a thing! It turns this Django template: {% table %} {% row %} {% cell %}Header 1{% endcell%} {% cell %}Header 2{% endcell%} {% endrow %} {% row %} {% cell %}Value 1{% endcell%} {% cell %}Value 2 Newlines work!{% endcell%} {% endrow %} {% endtable %} Into this–

0 likes 1 replies

?

Replies

Pēteris Caune · Sep 30

I'm using it to prepare plaintext versions of report emails (where whitespace matters and <table> tags obviously don't work). Source: https://github.com/healthchecks/healthchecks/blob/master/hc/front/templatetags/asciitable.py Example usage […]