• 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.

Item5596: EditRowPlugin right adjusts when columns are prepopulated with spaces.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension EditRowPlugin Normal Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

If a user prepopulates a row, and there are spaces between the pipes, the EditRowPlugin will right adjust instead of left adjust the text

For example:

%EDITTABLE{ headerrows="1" format="| textarea, 4x40 | select, 1,Foo,Boo,Goo | text, 25 | text, 25 | text, 25 |" }%
|*Decription*|*Part Number*|*WR server*|*Speedera*|*WR server*|
|  |  |  |  |  | 

Becomes:

%EDITTABLE{ headerrows="1" format="| textarea, 4x40 | select, 1,Foo,Boo,Goo | text, 25 | text, 25 | text, 25 |" }%
 |*Decription*|*Part Number*|*WR server*|*Speedera*|*WR server*|
 |  Test test|  Foo|  Test|  Test|  Test|
 

Which makes the table look odd.

It should be left adjusted.

-- TWiki:Main/PaulineCheung - 01 May 2008

What has happened here is that the user has defined a table cell using two spaces. There are four ways to interpret this:

  1. A table cell with no content which is left justified (two spaces at the end)
  2. A table cell with no content which is right justified (two spaces at the start)
  3. A table cell that is centred (space at the start and space at the end)
  4. An empty table cell
4 is consistent with EditTablePlugin, so I guess it has to be that. Changed, ready for release.

-- CrawfordCurrie - 07 May 2008

ItemTemplate
Summary EditRowPlugin right adjusts when columns are prepopulated with spaces.
ReportedBy TWiki:Main.PaulineCheung
Codebase

SVN Range TWiki-5.0.0, Tue, 15 Apr 2008, build 16676
AppliesTo Extension
Component EditRowPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:16780
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2008-05-07 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback