# HG changeset patch # User Jim Hague # Date 1507741532 -3600 # Node ID 9b562923ac713a9d2ca7919540b329a7c81d6d36 # Parent 772402f5f8ea4daee5bf20d862884ef02e51d9ad Fix full title text in markdown - getFullTitle() needs a list of lines. diff -r 772402f5f8ea -r 9b562923ac71 abcfield.py --- a/abcfield.py Wed Oct 11 17:45:27 2017 +0100 +++ b/abcfield.py Wed Oct 11 18:05:32 2017 +0100 @@ -185,7 +185,8 @@ fname = m.group(1) + ".abc" path = pathlib.Path(dir, fname) with path.open() as f: - return "[" + getFullTitle(f, dir, latex=latex) + "](" + fname + ")" + lines = f.readlines() + return "[" + getFullTitle(lines, dir, latex=latex) + "](" + fname + ")" return re.sub(r'<(.*?).abc>', getTitleLink, t) # Return the raw text for a given field. Optionally the nth field is taken,