From: W. Trevor King Date: Mon, 2 Apr 2012 17:12:35 +0000 (-0400) Subject: Use default:"" to filter unknown NFPA warnings in LaTeX inventories. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a1509d517d4d31dfa9d635506bc0d2ab3193d42;p=chemdb.git Use default:"" to filter unknown NFPA warnings in LaTeX inventories. Because `None` makes the columns wider and distracts from known warning levels. --- diff --git a/chemdb/templates/chemdb/doc/inventory.tex b/chemdb/templates/chemdb/doc/inventory.tex index 781d70b..175597e 100644 --- a/chemdb/templates/chemdb/doc/inventory.tex +++ b/chemdb/templates/chemdb/doc/inventory.tex @@ -40,9 +40,9 @@ ID & Name & Amount & H & F & R & S & M & C & T \\ {{ chemical_instance.id }} & {{ chemical_instance.chemical.abbrev|latex_safe|safe }} & {{ chemical_instance.amount }} & - {{ chemical_instance.chemical.health }} & - {{ chemical_instance.chemical.fire }} & - {{ chemical_instance.chemical.reactivity }} & + {{ chemical_instance.chemical.health|default:"" }} & + {{ chemical_instance.chemical.fire|default:"" }} & + {{ chemical_instance.chemical.reactivity|default:"" }} & {{ chemical_instance.chemical.special.all|latex_specials }} & {{ chemical_instance.chemical.mutagen|yesno:"M," }} & {{ chemical_instance.chemical.carcinogen|yesno:"C," }} &