Mon, 04 Jan 2021 16:39:09 +0100
Fixed some code style issues.
eric6/QScintilla/Exporters/ExporterHTML.py | file | annotate | diff | comparison | revisions | |
eric6/QScintilla/QsciScintillaCompat.py | file | annotate | diff | comparison | revisions |
--- a/eric6/QScintilla/Exporters/ExporterHTML.py Mon Jan 04 15:59:40 2021 +0100 +++ b/eric6/QScintilla/Exporters/ExporterHTML.py Mon Jan 04 16:39:09 2021 +0100 @@ -174,7 +174,8 @@ font = lex.font(subs_start + subs_idx) colour = lex.color(subs_start + subs_idx) paper = lex.paper(subs_start + subs_idx) - html += '.S{0:d} {{\n'.format(subs_idx - subs_start) + html += '.S{0:d} {{\n'.format( + subs_idx - subs_start) if font.italic(): html += ' font-style: italic;\n' if font.bold():
--- a/eric6/QScintilla/QsciScintillaCompat.py Mon Jan 04 15:59:40 2021 +0100 +++ b/eric6/QScintilla/QsciScintillaCompat.py Mon Jan 04 16:39:09 2021 +0100 @@ -226,9 +226,9 @@ @rtype int, int """ start = self.SendScintilla(QsciScintilla.SCI_GETSUBSTYLESSTART, - styleNr) + styleNr) count = self.SendScintilla(QsciScintilla.SCI_GETSUBSTYLESLENGTH, - styleNr) + styleNr) return start, count def getEndStyled(self):