<table><tr><td style="">loh.tar added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17949">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>also don't change the behavior of wordwrapping that is used by the view compared to what we would get by calling wordwrap on the document directly</p></blockquote>

<p>It's somehow not the case. The document has no such function. It's similar to ViewPrivate::smartNewline() or ViewPrivate::killLine().</p>

<p>ViewPrivate::applyWordWrap() is (now) like a higher level functionality based on two lower level functions.</p>

<p>When everyone want this into the document, I can try to do it. Just give advice how exactly. <br />
My only idea is to add a new function (e.g. wrapParagraph, reformatLines), which will result in an almost empty ViewPrivate::applyWordWrap().</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17949">https://phabricator.kde.org/D17949</a></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor, mwolff<br /><strong>Cc: </strong>dhaumann, cullmann, mwolff, kwrite-devel, kde-frameworks-devel, KTextEditor, hase, michaelh, ngraham, bruns, demsking, sars<br /></div>