diff abctemplate.py @ 598:ed823ea54c83

Add Dottes History to notes. Currently appears after notes with a gap. This is intended for longer exposition about a tune.
author Jim Hague <jim.hague@acm.org>
date Wed, 02 Nov 2016 18:36:31 +0000
parents 60749c792cde
children 7da70e8900ab
line wrap: on
line diff
--- a/abctemplate.py	Wed Nov 02 17:59:25 2016 +0000
+++ b/abctemplate.py	Wed Nov 02 18:36:31 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("=")