mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 21:21:35 +00:00
31b26a5bec
When adding a reply, we take a node at the end of the previous comment, compare that comment's indentation level to the expected indentation level of the reply, and add (or remove) that number of wrapper lists. The existing code did not consider that comments may have lists within them, and so the indentation of that node may not match the indentation of the comment. Bug: T252702 Change-Id: Icc5ff19783d2b213bff99f283cb0599a8b5c1ab4
17 lines
1.2 KiB
HTML
17 lines
1.2 KiB
HTML
<div class="mw-parser-output"><h2><span class="mw-headline" id="1">1</span></h2>
|
|
<p>Comment
|
|
</p>
|
|
<ul><li>with list <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:01, 29 July 2020 (UTC)</li></ul>
|
|
<h2><span class="mw-headline" id="2">2</span></h2>
|
|
<p>Comment
|
|
</p>
|
|
<ul><li>with list</li></ul>
|
|
<p>and PS <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:01, 29 July 2020 (UTC)
|
|
</p>
|
|
<h2><span class="mw-headline" id="3">3</span></h2>
|
|
<p>Lead comment <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:37, 29 July 2020 (UTC)
|
|
</p>
|
|
<dl><dd>Comment
|
|
<ul><li>with list <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:38, 29 July 2020 (UTC)</li></ul></dd></dl>
|
|
</div>
|