Mercurial > dottes
diff abcfield.py @ 588:afc031477784
Replace sed substitution with Python templating for HTML and LaTeX output.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 02 Nov 2016 00:21:18 +0000 (2016-11-02) |
parents | daa3b76bd11f |
children | 2face6618bf3 |
line wrap: on
line diff
--- a/abcfield.py Mon Oct 31 23:55:28 2016 +0000 +++ b/abcfield.py Wed Nov 02 00:21:18 2016 +0000 @@ -156,7 +156,7 @@ # Return the raw text for a given field. Optionally the nth field is taken, # or the field data must start with a designated string to be recognised. def getFieldText(inf, field, n = 1, starts = None): - res = None + res = "" for line in inf: line = line.strip() if len(line) > 2 and line[1] == ':':