Fix the HTML help builder.

This commit is contained in:
Georg Brandl 2008-02-20 19:43:14 +00:00
parent 8dc8280c3c
commit 92271705fd

View File

@ -117,7 +117,7 @@ was will with
def build_hhx(builder, outdir, outname): def build_hhx(builder, outdir, outname):
builder.msg('dumping stopword list...') builder.info('dumping stopword list...')
f = open(path.join(outdir, outname+'.stp'), 'w') f = open(path.join(outdir, outname+'.stp'), 'w')
try: try:
for word in sorted(stopwords): for word in sorted(stopwords):
@ -125,7 +125,7 @@ def build_hhx(builder, outdir, outname):
finally: finally:
f.close() f.close()
builder.msg('writing project file...') builder.info('writing project file...')
f = open(path.join(outdir, outname+'.hhp'), 'w') f = open(path.join(outdir, outname+'.hhp'), 'w')
try: try:
f.write(project_template % {'outname': outname, f.write(project_template % {'outname': outname,
@ -141,7 +141,7 @@ def build_hhx(builder, outdir, outname):
finally: finally:
f.close() f.close()
builder.msg('writing TOC file...') builder.info('writing TOC file...')
f = open(path.join(outdir, outname+'.hhc'), 'w') f = open(path.join(outdir, outname+'.hhc'), 'w')
try: try:
f.write(contents_header) f.write(contents_header)
@ -177,7 +177,7 @@ def build_hhx(builder, outdir, outname):
finally: finally:
f.close() f.close()
builder.msg('writing index file...') builder.info('writing index file...')
f = open(path.join(outdir, outname+'.hhk'), 'w') f = open(path.join(outdir, outname+'.hhk'), 'w')
try: try:
f.write('<UL>\n') f.write('<UL>\n')