EDITTABLE with a simple text input in which the user has put %BR% gets trunkated at the first BR
This is also a problem in 4.1.2
I guess it is yet another result of the generic problem that EDITTABLE is operating in view mode and that the content in the editable fields is show with the TWiki variables expanded. We need to get the EDITTABLE to show the values inside the fields as raw unrendered data.
Example below
in verbatim
%EDITTABLE{ changerows="off" quietsave="off" }%
| Services: | TD, PC %EDITCELL{checkbox,2,TD,TM,PC,PS,FM,KL}% | <small><table><tr><td>TD...Technical Documentation %BR% TM...Translation Management %BR% PC...Product Catalogs </td><td>PS...Processes and Systems %BR% FM...Feedback Management %BR% KL...Knowledge Logistics</td></tr></table></small> |
and the real stuff. To view just edit but do not save!!! You can see in edit mode what gets saved.
What is more surprising is that even with a html br we have the problem.
Well. Using multiple lines in a single line field is perhaps a bit silly so this is not a release blocker at all.
--
TWiki:Main/KennethLavrsen
- 05 Jan 2008
The problem was that
<br />
got translated to a unicode linebreak char, but never translated back. This has been like this for ages.
--
TWiki:Main.ArthurClemens
- 05 Jan 2008
This is obviously not the final solution because it will convert linebreaks in a textarea to
<br />
.
--
TWiki:Main.ArthurClemens
- 06 Jan 2008
Unicode linebreak chars are now converted back for all input elements except textareas.
--
TWiki:Main.ArthurClemens
- 06 Jan 2008