From 28ab689dab3563f9fad24d3d3eee1d400ae7a9a6 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 12 Aug 2020 20:28:42 +0200 Subject: [PATCH] Fixed pycodestyle E1 errors --- nw/gui/about.py | 18 +++++++++--------- nw/gui/doceditor.py | 5 +++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/nw/gui/about.py b/nw/gui/about.py index 02f9fa39..6a25af89 100644 --- a/nw/gui/about.py +++ b/nw/gui/about.py @@ -146,9 +146,9 @@ class GuiAbout(QDialog): aboutMsg += ( "

Theme: {name:s}

" "

" - "Author: {author:s}
" - "Credit: {credit:s}
" - "License: {license:s}" + "Author: {author:s}
" + "Credit: {credit:s}
" + "License: {license:s}" "

" ).format( name = theTheme.themeName, @@ -161,9 +161,9 @@ class GuiAbout(QDialog): aboutMsg += ( "

Icons: {name:s}

" "

" - "Author: {author:s}
" - "Credit: {credit:s}
" - "License: {license:s}" + "Author: {author:s}
" + "Credit: {credit:s}
" + "License: {license:s}" "

" ).format( name = theIcons.themeName, @@ -176,9 +176,9 @@ class GuiAbout(QDialog): aboutMsg += ( "

Syntax: {name:s}

" "

" - "Author: {author:s}
" - "Credit: {credit:s}
" - "License: {license:s}" + "Author: {author:s}
" + "Credit: {credit:s}
" + "License: {license:s}" "

" ).format( name = theTheme.syntaxName, diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index 2ec72b62..b53183de 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -962,8 +962,9 @@ class GuiDocEditor(QTextEdit): if theSize > self.mainConf.bigDocLimit*1000: logger.info( "The document size is %d > %d, big doc mode is enabled" % ( - theSize, self.mainConf.bigDocLimit*1000 - )) + theSize, self.mainConf.bigDocLimit*1000 + ) + ) self.bigDoc = True else: self.bigDoc = False