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