From 6a1509d517d4d31dfa9d635506bc0d2ab3193d42 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 Apr 2012 13:12:35 -0400 Subject: [PATCH] Use default:"" to filter unknown NFPA warnings in LaTeX inventories. Because `None` makes the columns wider and distracts from known warning levels. --- chemdb/templates/chemdb/doc/inventory.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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," }} & -- 2.26.2