diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-30 10:42:00 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-30 10:42:00 +0200 |
commit | 845e2e99fd869be1d8d12f69590131bdfb988768 (patch) | |
tree | cfbfa26eceba384d4bf838a5cef2181793e1ef9e /framework/qml/TextEditor.qml | |
parent | c56b187779b53429e868c94e55149c14676a31cb (diff) | |
download | kube-845e2e99fd869be1d8d12f69590131bdfb988768.tar.gz kube-845e2e99fd869be1d8d12f69590131bdfb988768.zip |
Preserve newlines when converting plain to html
Diffstat (limited to 'framework/qml/TextEditor.qml')
-rw-r--r-- | framework/qml/TextEditor.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/qml/TextEditor.qml b/framework/qml/TextEditor.qml index ec5993b7..e5cc665c 100644 --- a/framework/qml/TextEditor.qml +++ b/framework/qml/TextEditor.qml | |||
@@ -39,7 +39,7 @@ FocusScope { | |||
39 | 39 | ||
40 | onHtmlEnabledChanged: { | 40 | onHtmlEnabledChanged: { |
41 | if (htmlEnabled) { | 41 | if (htmlEnabled) { |
42 | var t = document.plainText | 42 | var t = document.htmlText |
43 | edit.textFormat = Qt.RichText | 43 | edit.textFormat = Qt.RichText |
44 | edit.text = t | 44 | edit.text = t |
45 | } else { | 45 | } else { |