Preserve white-space in the input history. 151/head
authorBas Pape <baspape@gmail.com>
Sat, 28 Dec 2013 12:07:30 +0000 (13:07 +0100)
committerBas Pape <baspape@gmail.com>
Thu, 24 Sep 2015 19:28:01 +0000 (21:28 +0200)
commit402c30b7a4db362f14e0920988a0967970ccd2da
tree770b29438f4ed5c230581db39f8c3dac69a05ea9
parent17311326016f3654fd33a656b2a0c4ac95776db6
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