Mercurial > dottes
diff abcfield.py @ 727:772402f5f8ea
Provide full titles for next and previous tunes in web pages.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 11 Oct 2017 17:45:27 +0100 |
parents | 833e6185b6a2 |
children | 9b562923ac71 |
line wrap: on
line diff
--- a/abcfield.py Wed Oct 11 17:09:31 2017 +0100 +++ b/abcfield.py Wed Oct 11 17:45:27 2017 +0100 @@ -241,8 +241,13 @@ def process(f, dir, options): lines = f.readlines() if options.display: - line = getFieldDisplayText(lines, dir, options.field, options.index, options.starts, options.latex) + if options.field.upper() == "FT": + line = getFullTitle(lines, dir, options.starts, options.latex) + else: + line = getFieldDisplayText(lines, dir, options.field, options.index, options.starts, options.latex) else: + if options.field.upper() == "FT": + options.field = "T" line = getFieldText(lines, options.field, options.index, options.starts) if line: print(line)