Skip to content

Commit

Permalink
Merge branch 'testing' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Feb 23, 2021
2 parents 2560b4d + fe04c1a commit 320643d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ _These Release Notes also include the changes from 1.1 RC 1._
**Bugfixes**

* A `None` check in the details panel below the project tree was missing, resulting in an
occasional error message being printed to the logging output. The error was otherwise handles, so
occasional error message being printed to the logging output. The error was otherwise handled, so
this is mainly a fix to prevent the error message. PR #639.

**User Interface**
Expand Down
14 changes: 11 additions & 3 deletions nw/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,17 @@ def _indexNoteRef(self, tHandle, aLine, nLine, nTitle):
return False

sTitle = "T%06d" % nTitle
if sTitle in self._refIndex[tHandle] and theBits[0] != nwKeyWords.TAG_KEY:
for aVal in theBits[1:]:
self._refIndex[tHandle][sTitle]["tags"].append([nLine, theBits[0], aVal])
if sTitle not in self._refIndex[tHandle]:
return False

if theBits[0] == nwKeyWords.TAG_KEY:
return False

if theBits[0] not in nwKeyWords.VALID_KEYS:
return False

for aVal in theBits[1:]:
self._refIndex[tHandle][sTitle]["tags"].append([nLine, theBits[0], aVal])

return True

Expand Down

0 comments on commit 320643d

Please sign in to comment.