diff abctemplate.py @ 599:fceafdb462a8 build-default-242

Automated merge with ssh://hg.cryhavoc.org.uk/dottes
author Jim Hague <jim.hague@acm.org>
date Wed, 02 Nov 2016 18:36:54 +0000
parents ed823ea54c83
children 7da70e8900ab
line wrap: on
line diff
--- a/abctemplate.py	Wed Nov 02 16:04:45 2016 +0000
+++ b/abctemplate.py	Wed Nov 02 18:36:54 2016 +0000
@@ -61,6 +61,7 @@
 
     vars = dict()
     vars["notesvisibility"] = "no"
+    vars["historyvisibility"] = "no"
 
     vars["name"] = fname
     vars["title"] = getFieldDisplayText(lines, fdir, "T", latex=args.latex)
@@ -70,6 +71,9 @@
     vars["notes"] = getFieldDisplayText(lines, fdir, "N", starts="Dottes:", latex=args.latex)
     if vars["notes"]:
         vars["notesvisibility"] = "yes"
+    vars["history"] = getFieldDisplayText(lines, fdir, "H", starts="Dottes:", latex=args.latex)
+    if vars["history"]:
+        vars["historyvisibility"] = "yes"
 
     for val in args.values:
         keyval = val.partition("=")