• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.
When defining values for table cell types in EditTable definitions, it is unclear whether spaces around values are considered significant or not. For example, is the following definition
...|select, 1, a, b, c|...
the same as the following
...|select, 1,a,b,c|...
or the following
...|select, 1, a , b , c |...

In other words, what is the value written into the table on each, if say, the firsts option was selected? Is it " a", "a", and " a "? Or "a", "a", and "a"? Or "a", "a", and "a "?

TW

c c c c
d d d d
d d d d
b b b b
b b b b
a a a a

c c c c
d d d a
a a a a

I have been testing a bit. It would have been better if the original reporter had been more specific on the problem. I think we all thought it was a doc issue. But there is more to it.

Try and edit the tables above with the Edit Table feature. Use IE. I did not try this in FF:

Try and change the first row to c c c c

And the next to d d d d

Save.

Edit again.

Note how the value of the last column changes to a in some rows. The way to work around it is to have no space before the comma and one space after. The plugin should not care about leading or trailing spaces when it comes to maintaining values.

As far as I can tell the plugin tries to cut leading and training spaces, which is also what I would have expected. But something goes wrong so it does not preserve the values. THAT is serious. Elevating to urgent.

-- KennethLavrsen - 03 Oct 2007

For select, radio and checkbox, the code now removes spaces before and after the values.

-- TWiki:Main.ArthurClemens - 17 Oct 2007

ItemTemplate
Summary Need clear definition of the impact of spaces on EditTable definition
ReportedBy TWiki:Main.ThomasWeigert
Codebase 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, ~twiki4
SVN Range TWiki-4.1, Sun, 08 Oct 2006, build 11688
AppliesTo Extension
Component EditTablePlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:15320 TWikirev:15321
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback