Tags:
create new tag
view all tags

Question

The list of users presented on the TWikiUsers page is formatted as a list, but not as a valid list. The asterisk on user lines (not alphabetic letter lines) is not preceeded by a multiple of three spaces but by a tab. As a result, the users are not indented relative to the alphabetic letters.

It appears to me that this problem is entirely caused by line 167 of TWikiUserMapping.pm, which reads, "my $entry = "\t* ";". Do you foresee any adverse consequences were I to change that line?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL 4
Web server: Apache
Perl version: 5.8.5
Client OS: RHEL 4
Web Browser: Firefox
Categories: Registration

-- DaveClose - 29 Oct 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You can change this line without any adverse consequences. However, I'm really surprised that a mixture of a multiple of three blanks and tabs would cause any problems. I have such a mixture in my users list, as probably have many installations from older TWiki versions:

In previous releases of TWiki, lists had been defined by tab characters instead of today's three blanks syntax. This "old" habit may still occasionally be found in the code. The renderer should respect both three blanks and a tab as a line belonging to a list, and it does in all my installations.

-- HaraldJoerg - 30 Oct 2007

The code does obey the tab but treats it exactly the same as three spaces. It would seem more logical that actual names should be indented relative to the alphabet header lines. I've change the tabs to six spaces in my files.

-- DaveClose - 02 Nov 2007

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-11-02 - DaveClose
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.