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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2001-12-01 - MatthiasTeege
 
  • 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.