Update code style to new standard
This commit is contained in:
+3
-3
@@ -748,7 +748,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
logger.error("Not a document action")
|
logger.error("Not a document action")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
logger.verbose("Requesting action: %s" % theAction.name)
|
logger.verbose("Requesting action: %s", theAction.name)
|
||||||
|
|
||||||
self._allowAutoReplace(False)
|
self._allowAutoReplace(False)
|
||||||
if theAction == nwDocAction.UNDO:
|
if theAction == nwDocAction.UNDO:
|
||||||
@@ -1722,10 +1722,10 @@ class GuiDocEditor(QTextEdit):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
if loadTag:
|
if loadTag:
|
||||||
logger.verbose("Attempting to follow tag '%s'" % theWord)
|
logger.verbose("Attempting to follow tag '%s'", theWord)
|
||||||
self.theParent.docViewer.loadFromTag(theWord)
|
self.theParent.docViewer.loadFromTag(theWord)
|
||||||
else:
|
else:
|
||||||
logger.verbose("Potential tag '%s'" % theWord)
|
logger.verbose("Potential tag '%s'", theWord)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -726,7 +726,7 @@ class GuiBuildNovel(QDialog):
|
|||||||
bldObj.doPostProcessing()
|
bldObj.doPostProcessing()
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error("Failed to build document '%s'" % tItem.itemHandle)
|
logger.error("Failed to build document '%s'", tItem.itemHandle)
|
||||||
nw.logException()
|
nw.logException()
|
||||||
if isPreview:
|
if isPreview:
|
||||||
self.docView.setText((
|
self.docView.setText((
|
||||||
@@ -743,7 +743,7 @@ class GuiBuildNovel(QDialog):
|
|||||||
bldObj.closeDocument()
|
bldObj.closeDocument()
|
||||||
|
|
||||||
tEnd = int(time())
|
tEnd = int(time())
|
||||||
logger.debug("Built project in %.3f ms" % (1000*(tEnd - tStart)))
|
logger.debug("Built project in %.3f ms", 1000*(tEnd - tStart))
|
||||||
|
|
||||||
if bldObj.errData:
|
if bldObj.errData:
|
||||||
self.theParent.makeAlert([
|
self.theParent.makeAlert([
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
novelWriter – Main GUI Editor Class Tester
|
novelWriter – Main GUI Editor Class Tester
|
||||||
==========================================
|
==========================================
|
||||||
|
|||||||
Reference in New Issue
Block a user