From b5a50256b60ecb6e0a3477158f503ec030f3eb9b Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Thu, 5 May 2016 11:55:57 +0200 Subject: [PATCH] Fix index entries that broke the latex builder This commit fixes the element count of index entries so that the latex builder is not broken anymore. The version number is bumped to 0.2.2. --- README.rst | 5 +++++ jandd/sphinxext/ip.py | 6 +++--- setup.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index d2f696b..7591baf 100644 --- a/README.rst +++ b/README.rst @@ -28,6 +28,11 @@ Contributors Changes ======= +0.2.2 - to be released +---------------------- + +* fix index entries that broke the latex builder + 0.2.1 - 2016-05-05 ------------------ diff --git a/jandd/sphinxext/ip.py b/jandd/sphinxext/ip.py index fe25208..95cde86 100644 --- a/jandd/sphinxext/ip.py +++ b/jandd/sphinxext/ip.py @@ -23,7 +23,7 @@ from sphinx.locale import l_ from sphinx.roles import XRefRole from sphinx.util.nodes import make_refnode -__version__ = '0.2.1' +__version__ = '0.2.2' def ip_object_anchor(typ, path): @@ -120,8 +120,8 @@ class IPRange(Directive): doctitle = self.state.document.traverse(nodes.title)[0].astext() idx_text = "%s; %s" % (self.rangespec, doctitle) self.indexnode = addnodes.index(entries=[ - ('single', idx_text, name, ''), - ('single', self.get_index_text(), name, '') + ('single', idx_text, name, False, ''), + ('single', self.get_index_text(), name, False, '') ]) if self.content: diff --git a/setup.py b/setup.py index 4a22ff9..350756f 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -version = '0.2.1' +version = '0.2.2' with open('README.rst') as readme: description = readme.read() + "\n\n"