[pmwiki-users] Some experiments with whitespace indentation

Patrick R. Michaud pmichaud at pobox.com
Fri Oct 14 22:20:28 CDT 2005


At http://www.pmwiki.org/wiki/Test/WSIndent I'm experimenting
with using whitespace to indicate that text lines should be
continuations of a previous list item.

In particular, if a text line is indented so that it exactly
aligns with the first character of a list item above it, then
it's treated as being part of that list item instead of being
preformatted text.  For example, given markup like:

# list item 1
# list item 2

  some text

# list item 3

because "some text" is horizontally aligned with the first
character of "list item 2" above it, it's treated as being
part of the list item instead of being preformatted text.
If the first non-space character is in any other column, it's
a preformatted text line.

This even works for nested lists:

# list item 1
# list item 2
##   %alpha% sublist item a
##   sublist item b
     Text that is part of sublist item b
     more text of sublist item b
##   list item c

  Text that is part of list item 2 (closes the a,b,c list)

# list item 3

     This is now preformatted text.

Feel free to experiment on the Test.WSIndent page and let me
know what you think.  

I'm also considering having the whitespace indent possibly 
enabled for all markups, not just text, thus:

* This is a list item
  # a nested list
  # another nested list
    * a nested bullet list
  # another nested list

* Another list item

  ||a simple       ||table contained||
  ||in the second  ||list item||

* Yet another list item

  !!! subheading in list item

  text, text
  text, text

Back to normal paragraphs of text.

Comments?

Pm




More information about the pmwiki-users mailing list