File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ void Model::execCmd(QList<QByteArray> cmd)
77
77
}
78
78
79
79
QVariant value = result.value ();
80
- emit addOutput (RedisClient::Response::valueToHumanReadString (value),
80
+ emit addOutput (RedisClient::Response::valueToHumanReadString (value). replace ( " \r\n " , " \n " ) ,
81
81
" part" );
82
82
});
83
83
@@ -98,7 +98,7 @@ void Model::execCmd(QList<QByteArray> cmd)
98
98
}
99
99
100
100
QVariant value = result.value ();
101
- emit addOutput (RedisClient::Response::valueToHumanReadString (value),
101
+ emit addOutput (RedisClient::Response::valueToHumanReadString (value). replace ( " \r\n " , " \n " ) ,
102
102
" complete" );
103
103
});
104
104
Original file line number Diff line number Diff line change @@ -46,9 +46,10 @@ Rectangle {
46
46
+ appSettings .valueEditorFont + " '>"
47
47
+ qmlUtils .escapeHtmlEntities (text) + ' </span>' )
48
48
} else {
49
- textArea .append (" <pre style='color: white; font-family: "
49
+ console .log (qmlUtils .escapeHtmlEntities (text))
50
+ textArea .append (" <code style='color: white;white-space: pre-wrap;font-family: "
50
51
+ appSettings .valueEditorFont + " '>"
51
- + qmlUtils .escapeHtmlEntities (text) + ' </pre >' )
52
+ + qmlUtils .escapeHtmlEntities (text) + ' </code >' )
52
53
}
53
54
54
55
if (type == " complete" || type == " error" ) {
You can’t perform that action at this time.
0 commit comments