Use Chemical.abbrev instead of .name in LaTeX docs (to avoid long lines).
authorW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:03:00 +0000 (13:03 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 17:03:00 +0000 (13:03 -0400)
chemdb/templates/chemdb/doc/door.tex
chemdb/templates/chemdb/doc/inventory.tex

index 555a4129a6864d186e78dcdcf95af562befea562..f31fac16bbde860496547a8cd05fe7607a97bcb7 100644 (file)
@@ -28,7 +28,7 @@
 \multicolumn{3}{c}{\Tstrut {{ title }} } \\
 {% for chemical_instance in instance_group %}
 {{ chemical_instance.amount }} & {{ chemical_instance.id }} &
-  {{ chemical_instance.chemical.name|latex_safe|safe }} \\
+  {{ chemical_instance.chemical.abbrev|latex_safe|safe }} \\
 {% endfor %}
 {% endif %}
 {% endfor %}
index 18c18eeae3382a59ae1377a4f75ed9c1f2e86c03..02c46a336f76f691cfb7b4a297a40af9946f5cda 100644 (file)
@@ -38,7 +38,7 @@ ID & Name & Amount & H & F & R & O & M & C & T \\
 \hline
 \endhead{% for chemical_instance in chemical_instances %}
 {{ chemical_instance.id }} &
-  {{ chemical_instance.chemical.name|latex_safe|safe }} &
+  {{ chemical_instance.chemical.abbrev|latex_safe|safe }} &
   {{ chemical_instance.amount }} &
   {{ chemical_instance.chemical.health }} &
   {{ chemical_instance.chemical.fire }} &