X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fmultilineedit.cpp;h=37f1f62ac1d1c473827ba23f5fe5ccc48619cbef;hp=7e89f499ae35cc0d322271e8aa0bc932f6f5a1c1;hb=b49c64970b6237fc95f8ca88c8bb6bcf04c251d7;hpb=169266ea6b484f8876679854998cdd6dac6b9e90 diff --git a/src/uisupport/multilineedit.cpp b/src/uisupport/multilineedit.cpp index 7e89f499..37f1f62a 100644 --- a/src/uisupport/multilineedit.cpp +++ b/src/uisupport/multilineedit.cpp @@ -55,6 +55,9 @@ MultiLineEdit::MultiLineEdit(QWidget *parent) setLineWrapEnabled(false); reset(); + // Prevent QTextHtmlImporter::appendNodeText from eating whitespace + document()->setDefaultStyleSheet("span { white-space: pre-wrap; }"); + connect(this, SIGNAL(textChanged()), this, SLOT(on_textChanged())); _mircColorMap["00"] = "#ffffff";