[pmwiki-users] Numbered lists and multi-paragraph

DaveG pmwiki at solidgone.com
Mon Jul 25 21:23:01 CDT 2005


 >     # First item\\\
 >       Continues to a second paragraph.
 >     # Second item
 >     # Third item  [IMAGE]
 >     # Fourth item
I think you meant \\ rather than \\\. In which case that does work -- 
the paragraph numbering continues appropriately. I can use this solution 
for my immediate issue.

Longer term I think we're actually talking about two different problems 
here:
1. How to continue an indent format across paragraphs (possibly more 
generically stated as how to force any format across paragraph breaks).

2. How to indicate multiple levels of varying indent numbering.

---- Issue 1 Thoughts:
Could we adapt the \\ to auto-indent when used in the context of a list. 
  This would ignore spaces added by the editor. We could an unindent tag 
to stop this if required (I suspect this would be the exception, not the 
rule).

# Line 1\\
      Continued
# Line 2

would be formatted in the way same as:
# Line 1\\
Continued
#Line 2

Results in:
1. Line 1
    Continued
2. Line 2

---- Issue 2 Thoughts:
Don't use spaces to identify levels of indent. Spaces already have 
meaning, and it's visually difficult to see when editing. Multiple # or 
* indicators might work:

# Here is a numbered item.\\
     Continued
**Some nested bullets
***More nested bullets\\
     Continued
**More nested bullets\\
    Continued
# Next numbered item

Results in:
1. Here is a numbered item.
    Continued
    - Some nested bullets
       - More nested bullets\\
         Continued
    - More nested bullets\\
      Some text
2. Next numbered item


  ~ ~ Dave

Patrick R. Michaud wrote:
> On Mon, Jul 25, 2005 at 06:29:11PM -0400, DaveG wrote:
> 
>>Is that really the way to approach this? If it is, then doesn it not 
>>remove a large part of the benefit of auto-numbered lists?
> 
> 
> So far it's the way to approach this, and yes, it seems to remove a
> large part of the benefit of auto-numbered lists.  Part of the
> problem in getting something like
> 
>     # Here is a numbered item.
> 
>       A paragraph in that same numbered item.
> 
>     # Here's a second numbered item.
> 
> to work is that leading spaces currently mean preformatted text, and
> for a variety of reasons we haven't wanted to eliminate that.  So,
> the approach I'm currently leaning towards is making PmWiki
> smart enough to know when leading spaces mean "preformatted
> text", and when they mean "continue something within the current
> list item".  Figuring out the algorithm for this is tricky enough; 
> implementing it in the context of PmWiki's other structures is even
> more challenging  ;-).  To see why, consider
> 
>    #Here is a numbered item.
>    **Some nested bullets
>    ***More nested bullets
>    **More nested bullets
>        Some text
>     Some more text.
>      Still more text.
> 
> It turns out there are several ways to interpret something like the
> above; what's worse, there's no obvious one.  (What seems "obvious"
> to one author often ends up being totally unparseable to others.)
> 
> 
>>I tried using \\ markup, to carry the numbers over with no luck.
> 
> 
> How about...
> 
>     # First item\\\
>       Continues to a second paragraph.
>     # Second item
>     # Third item  [IMAGE]
>     # Fourth item
> 
> Pm
> 




More information about the pmwiki-users mailing list