replace some control characters with their symbol counterparts

This commit is contained in:
2022-05-07 10:36:55 +02:00
parent 4d794480c7
commit 7d9a2d0648
3 changed files with 42 additions and 11 deletions

View File

@@ -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