projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed layout and escape quotes
[quassel.git]
/
src
/
uisupport
/
multilineedit.cpp
diff --git
a/src/uisupport/multilineedit.cpp
b/src/uisupport/multilineedit.cpp
index
7b26e7e
..
858304b
100644
(file)
--- a/
src/uisupport/multilineedit.cpp
+++ b/
src/uisupport/multilineedit.cpp
@@
-394,6
+394,7
@@
QString MultiLineEdit::convertHtmlToMircCodes(const QString &text) {
line.replace("&","&");
line.replace("<","<");
line.replace(">",">");
line.replace("&","&");
line.replace("<","<");
line.replace(">",">");
+ line.replace(""","\"");
result << line;
posLines += regexLines.matchedLength();
result << line;
posLines += regexLines.matchedLength();
@@
-465,6
+466,7
@@
QString MultiLineEdit::convertMircCodesToHtml(const QString &text) {
words[i].replace("&","&");
words[i].replace("<", "<");
words[i].replace(">", ">");
words[i].replace("&","&");
words[i].replace("<", "<");
words[i].replace(">", ">");
+ words[i].replace("\"", """);
if (style.isEmpty()) {
words[i] = "<span>" + words[i] + "</span>";
}
if (style.isEmpty()) {
words[i] = "<span>" + words[i] + "</span>";
}