Fix bug in document section stats
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user