Update qtconsole/frontend_widget.py
@@ -68,6 +68,7 @@ class FrontendHighlighter(PygmentsHighlighter):
# the string as plain text so we can compare it.
current_block = self.currentBlock()
string = current_block.text()
+
# QTextBlock::text() can still return non-breaking spaces
# for the continuation prompt
string = string.replace("\xa0", " ")
