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.
This commit is contained in:
Jan Dittberner 2016-05-05 11:55:57 +02:00
parent 4ae68e2958
commit b5a50256b6
3 changed files with 9 additions and 4 deletions

View file

@ -28,6 +28,11 @@ Contributors
Changes Changes
======= =======
0.2.2 - to be released
----------------------
* fix index entries that broke the latex builder
0.2.1 - 2016-05-05 0.2.1 - 2016-05-05
------------------ ------------------

View file

@ -23,7 +23,7 @@ from sphinx.locale import l_
from sphinx.roles import XRefRole from sphinx.roles import XRefRole
from sphinx.util.nodes import make_refnode from sphinx.util.nodes import make_refnode
__version__ = '0.2.1' __version__ = '0.2.2'
def ip_object_anchor(typ, path): def ip_object_anchor(typ, path):
@ -120,8 +120,8 @@ class IPRange(Directive):
doctitle = self.state.document.traverse(nodes.title)[0].astext() doctitle = self.state.document.traverse(nodes.title)[0].astext()
idx_text = "%s; %s" % (self.rangespec, doctitle) idx_text = "%s; %s" % (self.rangespec, doctitle)
self.indexnode = addnodes.index(entries=[ self.indexnode = addnodes.index(entries=[
('single', idx_text, name, ''), ('single', idx_text, name, False, ''),
('single', self.get_index_text(), name, '') ('single', self.get_index_text(), name, False, '')
]) ])
if self.content: if self.content:

View file

@ -2,7 +2,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
version = '0.2.1' version = '0.2.2'
with open('README.rst') as readme: with open('README.rst') as readme:
description = readme.read() + "\n\n" description = readme.read() + "\n\n"