Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
726:833e6185b6a2 | 727:772402f5f8ea |
---|---|
239 | 239 |
240 if __name__ == "__main__": | 240 if __name__ == "__main__": |
241 def process(f, dir, options): | 241 def process(f, dir, options): |
242 lines = f.readlines() | 242 lines = f.readlines() |
243 if options.display: | 243 if options.display: |
244 line = getFieldDisplayText(lines, dir, options.field, options.index, options.starts, options.latex) | 244 if options.field.upper() == "FT": |
245 else: | 245 line = getFullTitle(lines, dir, options.starts, options.latex) |
246 else: | |
247 line = getFieldDisplayText(lines, dir, options.field, options.index, options.starts, options.latex) | |
248 else: | |
249 if options.field.upper() == "FT": | |
250 options.field = "T" | |
246 line = getFieldText(lines, options.field, options.index, options.starts) | 251 line = getFieldText(lines, options.field, options.index, options.starts) |
247 if line: | 252 if line: |
248 print(line) | 253 print(line) |
249 return True | 254 return True |
250 else: | 255 else: |