Updated tokenizer, and added html converter as a subclass

This commit is contained in:
Veronica K. B. Olsen
2019-05-07 18:47:55 +02:00
parent e0936b5f33
commit 83169d9075
3 changed files with 74 additions and 3 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ from nw.project.project import NWProject
from nw.project.document import NWDoc
from nw.project.item import NWItem
from nw.convert.tokenizer import Tokenizer
from nw.convert.tohtml import ToHtml
from nw.enum import nwItemType
logger = logging.getLogger(__name__)
@@ -201,9 +202,10 @@ class GuiMain(QMainWindow):
for tHandle in self.theProject.treeOrder:
if tHandle not in theHandles:
continue
aDoc = Tokenizer(self.theProject, self)
aDoc = ToHtml(self.theProject, self)
aDoc.setText(tHandle)
aDoc.tokenizeText()
aDoc.doConvert()
return