diff options
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r-- | sphinx/util/nodes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 4c574c242..e50de9630 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -266,15 +266,15 @@ def process_index_entry(entry, targetid): main = 'main' entry = entry[1:].lstrip() for type in pairindextypes: - if entry.startswith(type+':'): - value = entry[len(type)+1:].strip() + if entry.startswith(type + ':'): + value = entry[len(type) + 1:].strip() value = pairindextypes[type] + '; ' + value indexentries.append(('pair', value, targetid, main, None)) break else: for type in indextypes: - if entry.startswith(type+':'): - value = entry[len(type)+1:].strip() + if entry.startswith(type + ':'): + value = entry[len(type) + 1:].strip() if type == 'double': type = 'pair' indexentries.append((type, value, targetid, main, None)) |