[SNBOutput] Change wording for the unused page content on each page before the first bookmark appeared in TOC.

This commit is contained in:
Li Fanxi 2010-10-11 01:37:29 +08:00
parent dafa2c9034
commit 63bb69d4ec

View File

@ -141,10 +141,10 @@ class SNBOutput(OutputFormatPlugin):
else: else:
outputFiles[item[0]] = [] outputFiles[item[0]] = []
if not "" in outputFiles[item[0]]: if not "" in outputFiles[item[0]]:
outputFiles[item[0]].append(("", _("Chapter Start"))) outputFiles[item[0]].append(("", tocitem.title + _(" (Preface)")))
ch = etree.SubElement(tocBody, "chapter") ch = etree.SubElement(tocBody, "chapter")
ch.set("src", ProcessFileName(item[0]) + ".snbc") ch.set("src", ProcessFileName(item[0]) + ".snbc")
ch.text = _("Chapter Start") ch.text = tocitem.title + _(" (Preface)")
outputFiles[item[0]].append((item[1], tocitem.title)) outputFiles[item[0]].append((item[1], tocitem.title))
else: else:
if tocitem.href in outputFiles: if tocitem.href in outputFiles: