christopher-ramirez / secretary

Take the power of Jinja2 templates to OpenOffice and LibreOffice.
Other
190 stars 48 forks source link

Auto-Filter json null (Python None) #54

Open tigerfoot opened 6 years ago

tigerfoot commented 6 years ago

When you get a json extracted from database or other sources, it is not rare that some field are empty (aka null). Python JSONDecoder decode them as None Python object. But in document, I guess the majority would like to see (nothing) when its None in place of 'None' remplacing the Jinja var.

Perhaps I've missed a simple filter here, but I can't see any good reason to print None