From 52a4e5d581ca8bbee15e2a207bf9faaabb2fed5f Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 11 Jun 2014 22:34:12 +0100 Subject: [PATCH] Fix alphabetic index and toc bug in books Bad indent introduced in commit [796240]. --- gramps/plugins/docgen/cairodoc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gramps/plugins/docgen/cairodoc.py b/gramps/plugins/docgen/cairodoc.py index e82b0ebb4..f7cfeaf87 100644 --- a/gramps/plugins/docgen/cairodoc.py +++ b/gramps/plugins/docgen/cairodoc.py @@ -125,11 +125,11 @@ class CairoDocgen(libcairodoc.CairoDoc): toc_page = page_nr if page.has_index(): index_page = page_nr - for mark in page.get_marks(): - if mark.type == INDEX_TYPE_ALP: - if mark.key in index: - if page_nr + 1 not in index[mark.key]: - index[mark.key].append(page_nr + 1) + for mark in page.get_marks(): + if mark.type == INDEX_TYPE_ALP: + if mark.key in index: + if page_nr + 1 not in index[mark.key]: + index[mark.key].append(page_nr + 1) else: index[mark.key] = [page_nr + 1] elif mark.type == INDEX_TYPE_TOC: