Tags:
create new tag
, view all tags

Question

How do I maintain a numbered list format if one of the list items uses %INCLUDE%?

I have certain paragraphs that I need to repeat over and over on multiple pages. I have put each paragraph on its own Wiki page, and I %INCLUDE{Topic}% to bring the paragraph into my main pages.

The problem is that on some pages, if I'm in an indented (Numbered) list when I invoke the %INCLUDE% the indentation is maintained for that list item, but as soon as I follow the included item with my next " 1.", the list starts over all the way to the left and at 1, like this:

  1. My top level item
    1. my first subitem text
    2. my second subitem text
      1. my first indent in subitem 2 b. my second indent in subitem 2, with %INCLUDE{Topic}%.
    3. my third item text

displays like this:

a. My top level item

  1. my first submitem text
  2. my second subitem text
    1. my first indent in subitem 2 b. my second indent in subitem 2 with the text that is in the Topic include
1. my third subitem text

where what I want is this:

a. My top level item

  1. my first submitem text
  2. my second subitem text
    1. my first indent in subitem 2 b. my second indent in subitem 2 with the text that is in the Topic include
  3. my third subitem text

(with the sequence number "3" and the first level indentation).

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- CathyHandzel - 16 Sep 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I found the answer. I need a %STOPINCLUDE% on my topic pages and then the calling formats are retained.

-- CathyHandzel - 17 Sep 2005

 
Topic revision: r3 - 2005-09-19 - PeterThoeny
 
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.