Fix an issue in index with open a version 1.2 project

This commit is contained in:
Veronica K. B. Olsen
2021-02-20 17:27:32 +01:00
parent fe828a1c49
commit 464c7dae0a
+2 -1
View File
@@ -714,7 +714,8 @@ class NWIndex():
for refTitle in self._refIndex[tHandle]:
for aTag in self._refIndex[tHandle][refTitle].get("tags", []):
if len(aTag) == 3 and (sTitle is None or sTitle == refTitle):
theRefs[aTag[1]].append(aTag[2])
if aTag[1] in theRefs: # Future-compatible. Check can be removed in 1.2.
theRefs[aTag[1]].append(aTag[2])
return theRefs