Bug #19566
closedp after (un)ordered list causes inconsistent markup when using the list buttons to get out of the list
0%
Description
There are several ways to get out of an (un)ordered list. When you are in the last item of your list,
Way 1: press enter two times (first enter creates a new empty list item, second enter gets you out of the list)
Way 2: use button insertParagraphAfter or the equivalent in the context menu.
Way 3: press enter once and then klick the ul/ol button.
Way 3 causes a problem when you want to enter more than one paragraph after your list. The whole text before the last paragraph will be wrapped by a p.
<p>
<p>sometext</p>
<ol>
<li>item 1</li>
<li>item 1</li>
</ol>
some more text
</p>
<p></p>
The problem seems to be that pressing the list button moves the cursor below the list but does not create a p at the same time (the other two ways do that).
Prosit, Uschi
(issue imported from #M9730)
Updated by Uschi Renziehausen about 16 years ago
Forgot to put a pre around the markup:
<p> <p>sometext</p> <ol> <li>item 1</li> <li>item 1</li> </ol> some more text </p> <p></p>
Updated by Uschi Renziehausen about 16 years ago
ok, learned my lesson, pre does not work as expected, you need to htmlspecialchar the stuff first. Sorry for messy messages:
<p>
<p>sometext</p>
<ol>
<li>item 1</li>
<li>item 1</li>
</ol>
some more text
</p>
<p></p>