diff --git a/safety_master_plugin/scripts/qt_master_wrapper.py b/safety_master_plugin/scripts/qt_master_wrapper.py index c1da1b2..19b22de 100644 --- a/safety_master_plugin/scripts/qt_master_wrapper.py +++ b/safety_master_plugin/scripts/qt_master_wrapper.py @@ -211,7 +211,8 @@ class QtWrapper: cursor = self.widget.logsBrowser.textCursor() cursor.movePosition(QTextCursor.End) self.widget.logsBrowser.setTextCursor(cursor) - self.widget.logsBrowser.insertHtml('' + str(time) + '. ' + info_text + '
') + # self.widget.logsBrowser.insertHtml('' + str(time) + '. ' + info_text + '
') + self.widget.logsBrowser.insertHtml(' {0} {1}
'.format(time,info_text)) self.scroll_to_bottom() def log_warning(self,warning_text): @@ -221,7 +222,7 @@ class QtWrapper: cursor.movePosition(QTextCursor.End) self.widget.logsBrowser.setTextCursor(cursor) self.widget.logsBrowser.textCursor().movePosition(QTextCursor.End) - self.widget.logsBrowser.insertHtml('' + str(time) + '. ' + warning_text + '
') + self.widget.logsBrowser.insertHtml(' {0} {1}
'.format(time,warning_text)) self.scroll_to_bottom() def log_error(self,error_text): @@ -231,7 +232,7 @@ class QtWrapper: cursor.movePosition(QTextCursor.End) self.widget.logsBrowser.setTextCursor(cursor) self.widget.logsBrowser.textCursor().movePosition(QTextCursor.End) - self.widget.logsBrowser.insertHtml('' + str(time) + '. ' + error_text + '
') + self.widget.logsBrowser.insertHtml(' {0} {1}
'.format(time,error_text)) self.scroll_to_bottom() def scroll_to_bottom(self):