replace some control characters with their symbol counterparts
This commit is contained in:
@@ -421,15 +421,7 @@ class InnerBigText(QWidget):
|
||||
left_offset = int(-1 * self._left_offset * self.char_width)
|
||||
y_line_offset = self.char_height;
|
||||
for l in self.lines:
|
||||
text = l.line_tabs_replaced()
|
||||
text = text.replace("\0", "␀") # qt throws error if we try to draw a null character
|
||||
text = text.replace("\1", "␁")
|
||||
text = text.replace("\2", "␂")
|
||||
text = text.replace("\3", "␃")
|
||||
text = text.replace("\4", "␄")
|
||||
text = text.replace("\5", "␅")
|
||||
text = text.replace("\6", "␆")
|
||||
text = text.replace("\a", "␇")
|
||||
text = l.line_prepared_for_display()
|
||||
painter.drawText(left_offset, y_line_offset, text)
|
||||
y_line_offset = y_line_offset + self.char_height
|
||||
|
||||
|
||||
Reference in New Issue
Block a user