Fix bug in document section stats

This commit is contained in:
Veronica K. B. Olsen
2020-09-24 23:24:15 +02:00
parent a9fd68a249
commit ad50ef6e8c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ class NWIndex():
# Count words for remaining text after last heading
if nTitle > 0:
lastText = "\n".join(theLines[nTitle-1:nLine-1])
lastText = "\n".join(theLines[nTitle-1:])
self._indexWordCounts(tHandle, isNovel, lastText, nTitle)
# Update timestamps for index changes
+3 -3
View File
@@ -1074,9 +1074,9 @@ def testOutline(qtbot, nwLipsum, nwTemp):
assert nwGUI.projMeta.fileValue.text() == "Lorem Ipsum"
assert nwGUI.projMeta.itemValue.text() == "Finished"
assert nwGUI.projMeta.cCValue.text() == "122"
assert nwGUI.projMeta.wCValue.text() == "18"
assert nwGUI.projMeta.pCValue.text() == "2"
assert nwGUI.projMeta.cCValue.text() == "230"
assert nwGUI.projMeta.wCValue.text() == "40"
assert nwGUI.projMeta.pCValue.text() == "3"
# Scene One
actItem = nwGUI.projView.topLevelItem(1)