Mercurial > dottes
changeset 728:9b562923ac71
Fix full title text in markdown - getFullTitle() needs a list of lines.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 11 Oct 2017 18:05:32 +0100 |
parents | 772402f5f8ea |
children | e338d757fdca |
files | abcfield.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,