Fix alphabetic index and toc bug in books

Bad indent introduced in commit [796240].
This commit is contained in:
Nick Hall 2014-06-11 22:34:12 +01:00
parent 637f72d4af
commit 52a4e5d581

View File

@ -125,11 +125,11 @@ class CairoDocgen(libcairodoc.CairoDoc):
toc_page = page_nr toc_page = page_nr
if page.has_index(): if page.has_index():
index_page = page_nr index_page = page_nr
for mark in page.get_marks(): for mark in page.get_marks():
if mark.type == INDEX_TYPE_ALP: if mark.type == INDEX_TYPE_ALP:
if mark.key in index: if mark.key in index:
if page_nr + 1 not in index[mark.key]: if page_nr + 1 not in index[mark.key]:
index[mark.key].append(page_nr + 1) index[mark.key].append(page_nr + 1)
else: else:
index[mark.key] = [page_nr + 1] index[mark.key] = [page_nr + 1]
elif mark.type == INDEX_TYPE_TOC: elif mark.type == INDEX_TYPE_TOC: