Description
Text on subsequent lines in a numbered list item with same indent level is not considered part of same paragraph.
Example
Indented text
Markup
first line subsequent line first line subsequent line first line subsequent line
Display:
- first line subsequent line
- first line subsequent line
- first line subsequent line
- first line subsequent line
Works as expected.
Unordered list
Markup:
* first line subsequent line * first line subsequent line * first line subsequent line
Display:
- first line subsequent line
- first line subsequent line
- first line subsequent line
- first line subsequent line
Generated HTML:
<ul> <li> <p>first line subsequent line</p> <ul> <li> <p>first line subsequent line</p> <ul> <li> <p>first line subsequent line</p> </li> </ul> </li> </ul> </li> </ul>
Works as expected.
Ordered list
Markup:
1. first line subsequent line 1. first line subsequent line 1. first line subsequent line
Display:
- first line subsequent line
- first line subsequent line
- first line subsequent line
- first line subsequent line
Generated HTML:
<ol type="1"> <li> <p>first line</p> </li> </ol> <ul> <li style="list-style-type:none"> <p>subsequent line</p> <ol type="1"> <li> <p>first line</p> </li> </ol> <ul> <li style="list-style-type:none"> <p>subsequent line</p> <ol type="1"> <li> <p>first line</p> </li> </ol> <ul> <li style="list-style-type:none"> <p>subsequent line</p> </li> </ul> </li> </ul> </li> </ul>
Broken, spacing is broken, too. I think this should use this markup instead:
-
first line subsequent line
-
first line subsequent line
-
first line subsequent line
-
-
Details
This wiki
Workaround
Use long lines in ordered lists.
Discussion
How should it then know when to start a new enumbered list by 1? A list item is different in this case. The example shows a long line in the editor but not on screen.
- do this...
then this
like this- and finally this
-- ReimarBauer 2005-03-28 17:06:01
This is not the problem - the user want to use hard warping of paragraph text in editing, but get one paragraph in the end.
This is NOT a duplicate of ../BlockElementsInListBreakIndent . Text on subsequent lines with same indentation should be treated as same paragraph - just like it seem to works in bulleted lists. We should check the parser, this may be a simple indent calculation error.
The docs described that this should work. I updated the docs to reflect the current code, when we fix this, we should remove the note in the docs. -- NirSoffer 2005-03-29 16:00:23
Plan
- Priority:
- Assigned to:
- Status: fixed in moin--refactor--1.5 branch...