diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-12 13:03:53 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-12 13:03:53 +0900 |
commit | 38d6c34f35c60689f22d1f71ce650ca1e3005ec4 (patch) | |
tree | 0677416d0de03a53ee7d348289d8560e511c2bed /sphinx/util/nodes.py | |
parent | ef912eb9a3e923e80d5c6a08fda4597a65d591aa (diff) | |
parent | 478306e052d9711170b1fbe63635edef02853484 (diff) | |
download | sphinx-git-38d6c34f35c60689f22d1f71ce650ca1e3005ec4.tar.gz |
Merge branch 'stable'
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)) |