Show More
@@ -174,7 +174,7 b' class PygmentsHighlighter(QtGui.QSyntaxHighlighter):' | |||
|
174 | 174 | def _get_format_from_document(self, token, document): |
|
175 | 175 | """ Returns a QTextCharFormat for token by |
|
176 | 176 | """ |
|
177 | code, html = self._formatter._format_lines([(token, 'dummy')]).next() | |
|
177 | code, html = self._formatter._format_lines([(token, u'dummy')]).next() | |
|
178 | 178 | self._document.setHtml(html) |
|
179 | 179 | return QtGui.QTextCursor(self._document).charFormat() |
|
180 | 180 |
General Comments 0
You need to be logged in to leave comments.
Login now