RTF Input:Read metadata from RTF files when converting

This commit is contained in:
Kovid Goyal 2009-01-30 11:24:20 -08:00
parent 18b9c916bb
commit d547891422

View File

@ -170,7 +170,7 @@ def generate_html(rtfpath, tdir):
f.write(res)
f.close()
try:
mi = get_metadata(open(rtfpath, 'rb'))
mi = get_metadata(open(rtfpath, 'rb'), 'rtf')
except:
mi = MetaInformation(None, None)
if not mi.title: