We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I've downloaded and installed the latest twiki version and have a small problem about the display of lists. The first item of an list has anywhere an extra space so that it look like:

*  first
* second

What is wrong here?

  • TWiki version: the last, (where can I found this)
  • Web server: Apache 1.3.22
  • Server OS: FreeBSD 4.4
  • Web browser: Konqueror 2.2.1
  • Client OS: FreeBSD 4.4

-- MatthiasTeege - 24 Nov 2001

Answer

Check the source of the generated HTML page to see if there is an extra space or  . TWiki does not do that, at least on Solaris and Linux servers.

-- PeterThoeny - 25 Nov 2001

The problem is the missing /li tag in the lists. It looks like Konqueror shows an space as it is. Place the /li tag after any item solves the problem. I have change the code of TWiki.pm like this:

s/^(\t+)(\*)(.*)/<li>$3<\/li>/o   && ( $result .= &emitCode( "ul", length $1 ) );
#s/^(\t+)\* /<li> /o              && ( $result .= &emitCode( "ul", length $1 ) );

This works for a "normal" list. If there are other tags in the list item like:

<li><br> %WikiVar% foo bar</br></li>

Konqueror display the space after br as it is so the list looks like shown above. But this maybe another problem.

Many thanks

-- MatthiasTeege - 01 Dec 2001

Topic revision: r3 - 01 Dec 2001 - 08:06:59 - MatthiasTeege
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback