WSIndent


This page is testing a capability to use whitespace to form paragraphs within lists and other indented constructs.

Following any bulleted or numbered list item, using whitespace to indent text to the same column as the first character of the item causes the text to remain at that level.

See also WSIndent2 for another page that allows selected block markups to also be indented inside of lists.

Vote for/against this feature at PITS:00562 (it's a CoreCandidate).

Example:

# This is a list item.
# This is another list item.

  Because these lines start in 
  the same column as the list item above, 
  they're treated as continuations
  of that item.

  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

### %alpha% Here's a third-level list
### Another third-level list item

    This text is part of the third-level list.

### One last third-level list item.

  Back to first level text.

# And another first-level item.

  1. This is a list item.
  2. This is another list item.
    Because these lines start in the same column as the list item above, they're treated as continuations of that item.
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    1. Here's a third-level list
    2. Another third-level list item
      This text is part of the third-level list.
    3. One last third-level list item.
    Back to first level text.
  3. And another first-level item.

Text that starts in any column other than the ones corresponding to the current lists is automatically treated as preformatted text. Of course, if someone needs a preformatted text section where the first line begins at the same column as a list item before it, it can always be forced using the [@...@] markup, or by moving the list item to a slightly different column.

Comments and using this page as a sandbox welcome.


  1. a list item
  2. another one
    some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text
    prevormatted with markup
    prevormatted with markup
    
    
    prevormatted with 2 spaces at the beginning of this line
    some text some text some text some text some text some text some text some text some text some text some text some text some text some text
  3. same list
  4. asdf adsf adsf
 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.06 00.03 MarkupToHTML begin
 3: 00.07 00.03 MarkupToHTML begin
 4: 00.09 00.04 MarkupToHTML end
 5: 00.10 00.06 MarkupToHTML end
 6: 00.11 00.06 MarkupToHTML begin
 7: 00.11 00.07 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 8: 00.12 00.07 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 9: 00.12 00.08 MarkupToHTML end
10: 00.13 00.08 MarkupToHTML begin
11: 00.14 00.08 MarkupToHTML end
12: 00.14 00.08 now
Peak memory: 3,182,184 bytes