Use default:"" to filter unknown NFPA warnings in LaTeX inventories.
authorW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:12:35 +0000 (13:12 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:12:37 +0000 (13:12 -0400)
Because `None` makes the columns wider and distracts from known
warning levels.

chemdb/templates/chemdb/doc/inventory.tex

index 781d70bd254895ec92d8f6fab3733eac7795dfb4..175597eb7d1c49724b14a9ee258ef041bc2c0f76 100644 (file)
@@ -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," }} &