<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: Frameworks, dfaure, ahmadsamir.<br />Herald added a project: Frameworks.<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/D28964">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch removes the workaround, which (according to comment) comes from Qt4<br />
times. Although I wasn't even able to find the original bug (only the title,<br />
"Remove implicit margin on bullet lists when exporting to HTML"), it would seem<br />
like the workaround is no longer actual (i.e. margins are consistent).</p>
<p>This is an alternative approach to <a href="https://phabricator.kde.org/D28819" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: line-through;">D28819: [KRichTextEdit] Always treat key press as single modification in undo stack</a>, as it removes the code which<br />
actually cluttered the undo stack. The latter patch introduced couple<br />
regressions unfortunately<br />
(e.g. ability to "undo" a written word, not just the last letter)</p>
<p>However, it slightly changes the behavior: it removes margins around a bullet<br />
list, which are probably not needed anyways (e.g. LibreOffice doesn't have it)</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Create a bullet list in <tt style="background: #ebebeb; font-size: 13px;">krichtexteditor</tt> with couple of lines</li>
<li class="remarkup-list-item">Try to undo -> a single undo is sufficient</li>
<li class="remarkup-list-item">Press enter to add bunch of empty new lines, so that scroll appears</li>
<li class="remarkup-list-item">Scroll still follows the cursor</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R310 KTextWidgets</div></div></div><br /><div><strong>BRANCH</strong><div><div>remove-workaround (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28964">https://phabricator.kde.org/D28964</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>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, ahmadsamir<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>