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
--
DaveClose - 29 Oct 2007
Answer
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