Tags:
create new tag
, view all tags
At work I got this request: It would be nice to be able to use <verbatim> tags in bullet lists, especially in a numbered list. Currently the numberings starts with 1 after a verbatim block.

Expected behaviour:

Write this:To get this:
   1. One
   1. Two 
      <verbatim>
      some verbatim text
      <verbatim>
      Two continues
   1. Three
   1. Four
  1. One
  2. Two
    some verbatim text
    Two continues
  3. Three
  4. Four

-- PeterThoeny - 12 Feb 2002

I second this. I need to do this a lot, and must resort to tables.

-- MartyBacke - 26 Mar 2002

+1. (That's a voting convention used some places, like the abiword-dev list.)

If somebody tackles this, please consider extending the scope of a list in similar fashion to allow blank lines or <blockquotes> between list elements -- I sometimes prefer vertical whitespace between elements of a list, especially if an element is a long paragraph. Also, I sometimes use <blockquote> tags to insert indented but non-numbered (or non-bulleted) paragraphs between elements of a list, sometimes even nested <blockquote> tags as each set of nested <blockquote> tags increases the indent.

Maybe we should consider a syntax where a list element is always considered a continuation of a previous list unless a list item is specifically identified as an element of a new list using some new TWiki markup. (I haven't tried to think that or the following through.)

Or maybe a list should continue until:

  • An item is under a new heading (---+++ blah blah or <h?>blah blah<h?>)
  • ???

In any event, I think we specifically need to allow nested lists, like a bulleted list within a numbered list or vice versa.

Sorry, doesn't sound like I'm trying to KISS -- just food for thought.

-- RandyKramer - 27 Mar 2002

for what concerns whitespaces in lists, have a look at RicherSyntaxPlugin.

-- FrancoBagnoli - 27 Mar 2002

I've done a simple partial implementation of this, limited by nature of TWiki and HTML. I also took the opportunity to make the code more forgiving of missing end of verbatim.

-- JohnTalintyre - 27 Mar 2002

Topic revision: r5 - 2002-03-27 - JohnTalintyre
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.