Preserve white-space in the input history.
authorBas Pape <baspape@gmail.com>
Sat, 28 Dec 2013 12:07:30 +0000 (13:07 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Jan 2016 16:36:01 +0000 (17:36 +0100)
commitfc63ab287880f16f24a0a30793fec3f52cdd58d8
tree8855b67d34f472229ec6fe2eb701bb0a20fba3d8
parent0a51798b95cb4dd024a9ffd7cc88f6326346825c
Preserve white-space in the input history.

By default QTextHtmlImporter::appendNodeText replaces white-space
characters with a single space and leading white-space is removed. When
white-space is set to pre-wrap in the style of the node, it is preserved
instead.

Given that contents are in a span element, setting white-space to
pre-wrap on span makes the setHtml call do the expected thing.
src/uisupport/multilineedit.cpp