Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[console] Fix unclosed strings don't respect the preset font size
  • Loading branch information
nyalldawson committed May 22, 2018
1 parent 33669ab commit 6d87a4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/console/console_editor.py
Expand Up @@ -246,6 +246,7 @@ def setLexers(self):
self.lexer.setFont(font, 1)
self.lexer.setFont(font, 3)
self.lexer.setFont(font, 4)
self.lexer.setFont(font, QsciLexerPython.UnclosedString)

for style in range(0, 33):
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColorEditor", QColor(Qt.white)))
Expand Down
1 change: 1 addition & 0 deletions python/console/console_output.py
Expand Up @@ -195,6 +195,7 @@ def setLexers(self):
self.lexer.setFont(font, 2)
self.lexer.setFont(font, 3)
self.lexer.setFont(font, 4)
self.lexer.setFont(font, QsciLexerPython.UnclosedString)

for style in range(0, 33):
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColor", QColor(Qt.white)))
Expand Down
1 change: 1 addition & 0 deletions python/console/console_sci.py
Expand Up @@ -199,6 +199,7 @@ def setLexers(self):
self.lexer.setFont(font, 1)
self.lexer.setFont(font, 3)
self.lexer.setFont(font, 4)
self.lexer.setFont(font, QsciLexerPython.UnclosedString)

for style in range(0, 33):
paperColor = QColor(self.settings.value("pythonConsole/paperBackgroundColor", QColor(Qt.white)))
Expand Down

0 comments on commit 6d87a4c

Please sign in to comment.