made chapter markup routine more Sigil friendly

This commit is contained in:
ldolse 2011-01-24 16:00:05 +08:00
parent d03ae9e001
commit 670fc644ed

View File

@ -43,7 +43,7 @@ class HeuristicProcessor(object):
self.html_preprocess_sections = self.html_preprocess_sections + 1
self.log.debug("marked " + unicode(self.html_preprocess_sections) +
" chapters & titles. - " + unicode(chap) + ", " + unicode(title))
return '<h2>'+chap+'</h2>\n<h3>'+title+'</h3>\n'
return '<h2 title="'+chap+', '+title+'">'+chap+'</h2>\n<h3 class="sigilNotInTOC">'+title+'</h3>\n'
def chapter_break(self, match):
chap = match.group('section')