Tags:
create new tag
view all tags

Bug: Numbered lists restart if there is a space in between

Blank lines between bumbered list items cause a restart of the numbering.

Its not "just like e-mail"

Test case

This works with and without RicherSyntaxPlugin

  1. Item One
  2. Item Two
  3. Item Three

(note: I have not used "1" for every item here, I'm trying to stick with the "just like e-mail" analogy)

but ...

  1. Item One
    Discussion of Item one followed by blank line, as you might see in a cut and paste from e-mail

  1. Item two, also followed by blank line

  1. Item three

Check the raw text so you can see that TWiki does render 1,2,3 sensibly.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: All
Web server: Apache 2
Perl version: 5.8
Client OS: Windows XP, but it shouldn't matter
Web Browser: Firefox, but it shouldn't matter

-- AntonAylward - 12 Nov 2004

Follow up

That's correct, it implements the spec.This isn't a bug, if anything it's a request for a spec change. But since we don;t have ChangeProposalForm yet I'm going to leave it as a bug until we do.

-- CrawfordCurrie - 12 Nov 2004

Acknowleged :-/

Keeping the list items together doens't faze me, since I'm used to it, but for many of my users and the sites I'm setting up, the "just like e-mail" is a big seelling point. So much so that RicherSyntaxPlugin and its ability to recognise headings like:


  This is a Heading
  =================

and hence allow "cut and paste" from e-mail into the "public record" of the wiki.

When I stop and think about it, I ought to go back and revisit a lot of e-mail to see what other "conventions" exist.

However ....

If, as at present blank line specifies list renumbering restart, then what about the future? If blank lines are to be allowed between consecutively numbered list items, how are we to indicate a restart of numbering -- without putting something ugly in like %NEWLIST{ start="4" format="#)"}% ?

Oh, and without breaking anything in previously written topics!

-- CrawfordCurrie - 12 Nov 2004

Here are some test cases. Are they bugs or features?

List mixed with verbatim, no spaces (resets in TWikiRelease01Sep2004)

  1. One
one
  1. Two
two

List mixed with verbatim, no spaces, indented (does not reset in TWikiRelease01Sep2004)

  1. One
       one
       
  2. Two
       two
       

List mixed with BeautifierPlugin, no spaces, indented (resets in TWikiRelease01Sep2004)

  1. One
one
   
  1. Two
two
   

-- NicholasSushkin - 05 Apr 2005

Nicholas, I'm pretty sure an indent not reseting the number is a documented feature, but am not sure which topic. ...LATER: Aah, there it is: VerbatimInBulletLists.

>If blank lines are to be allowed between consecutively numbered list items, how are we to indicate a restart of numbering

By listening to the number used of course. If somebody starts a new (a list item after a newline) list with 3 instead of 1 then it must mean they want to start with 3...

-- MattWilkie - 06 Apr 2005

Hi, I just use a couple of <br><br> at the end of the line so I get a blank line between bullets or numbers an never loose the sequence. i.e.

   1. bullet 1%BRR%
   1. bullet 2%BRR%
      1. bullet 2.1%BRR%This way you can even have multiple lines%BRR%"inside" a bullet without loosing the numbering%BRR%although it looks a litte cluttered on the text view.
      1. bullet 2.2%BRR%
   1. bullet 3%BRR%
      * bullet 3.1%BRR%
      * bullet 3.2%BRR%
   1. bullet 4

Results in:

  1. bullet 1

  2. bullet 2

    1. bullet 2.1

      This way you can even have multiple lines

      "inside" a bullet without loosing the numbering

      although it looks a litte cluttered on the text view.

    2. bullet 2.2

  3. bullet 3

    • bullet 3.1

    • bullet 3.2

  4. bullet 4

I don't know perl yet, but may be you could define some variable like %BR% that expands to <br><br> just to make typing easier!

-- MiguelVeloso - 07 Nov 2005

This is already easily possible (see raw text), but ugly!

-- FranzJosefSilli - 08 Nov 2005

Fix record

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2005-11-08 - FranzJosefSilli
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.