Fix regressions introduced with #556 fix: explicitly add line break in the

index visitor if the index node is a block one.
This commit is contained in:
Georg Brandl committed 2011-01-06 18:28:42 +01:00
1 parent fc7aa2e0cb
commit 0908c23ef0
3 files changed
+5

No files matched your search

+2
View File
@@ -1,6 +1,8 @@
Release 1.0.7 (in development)
==============================
* Fix regression of LaTeX output with the fix of #556.
* #568: Fix lookup of class attribute documentation on descriptors
so that comment documentation now works.
+1
View File
@@ -163,6 +163,7 @@ class Index(Directive):
self.state.document.note_explicit_target(targetnode)
indexnode = addnodes.index()
indexnode['entries'] = ne = []
indexnode['inline'] = False
for entry in arguments:
entry = entry.strip()
for type in pairindextypes:
+2
View File
@@ -1059,6 +1059,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.body.append('\n\\end{flushright}\n')
def visit_index(self, node, scre=re.compile(r';\s*')):
if not node.get('inline'):
self.body.append('\n')
entries = node['entries']
for type, string, tid, _ in entries:
if type == 'single':