• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6205: Multiple-Indented Bulleted and Numbered Lists display incorrectly

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Low New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

I have a bug and a workaround for you, all in one.

The bug is this: if you 'skip' levels when creating bulleted or numbered lists in the raw editor, you get a dot or number at each level.

For instance, typing


      * Testing

   1 Item
         1 Item 2

produces

    • Testing

  1. Item
      1. Item 2


The reason for this is that instead of directly nesting <ol> or <ul> tags to indent the list, like so: 

<ol> 
<ol>
<li>...

it inserts a <li> tag after every <ol> or <ul> tag, like so:

<ol>
<li>
<ol>
<li>...

The solution I've come up with is very straightforward, but is admittedly a hack: in one of the postRenderingHandler subs, place the following:

$_[0] =~ s:(<[ou]l>)\s*<li>\s*\1:$1 $1:gsi;

The more elegant solution, of course, would be to figure out where in the code it's generating these extra <li> tags and test for multiple indentations there.

-- TWiki:Main/BrandonLynge - 07 Mar 2009

ItemTemplate
Summary Multiple-Indented Bulleted and Numbered Lists display incorrectly
ReportedBy TWiki:Main.BrandonLynge
Codebase 4.2.0
SVN Range TWiki-5.0.0, Mon, 23 Feb 2009, build 17838
AppliesTo Engine
Component

Priority Low
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2009-03-07 - BrandonLynge
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback