<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: Frameworks, dfaure, mlaurent.<br />poboiko requested review of this revision.
</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/D29210">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When we try to increase / decrease an indentation level of a selection, just change<br />
indentation level of each block in the selection, and then make sure all styles<br />
are consistent via <tt style="background: #ebebeb; font-size: 13px;">reformatList</tt>.</p>
<p>This actually fixes indentation of selection: previously all blocks had the same indentation after this action.</p>
<p>Add a unit test that covers as much weird selections & indentation cases as I could imagine.</p>
<p>Slightly overlaps with <a href="https://phabricator.kde.org/D29208" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D29208: [NestedListHelper] Improve indentation code</a>, so this one should be applied after that.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p><tt style="background: #ebebeb; font-size: 13px;">make && ctest</tt></p></div></div><br /><div><strong>BRANCH</strong><div><div>change-indent (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29210">https://phabricator.kde.org/D29210</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/krichtextedittest.cpp<br />
autotests/krichtextedittest.h<br />
src/widgets/krichtextedit.cpp<br />
src/widgets/nestedlisthelper.cpp<br />
src/widgets/nestedlisthelper_p.h</div></div></div><br /><div><strong>To: </strong>poboiko, Frameworks, dfaure, mlaurent<br /><strong>Cc: </strong>kde-frameworks-devel<br /></div>