EditTablePlugin with a text area keeps adding spaces after a %BR>%
Here is an example
Use the edit table function repeatedly and watch how more and more spaces are added after the break. To the user this is very visible in edit mode and must be disturbing.
The reason for this is that since 4.1.2 versions of the plugin it seems that each time you do an edit cycle there is a conversion happening between <br /> and %BR%
The value of %BR% is defined with a trailing space and this was deliberately added to solve
Item3883 so we should not just remove this trailing space. The traling space enables rendering of TML and URLs in table textareas and in bullets with line breaks. This is important and it was a huge help for my users that kept on running into this problem.
But with the new
EditTablePlugin behaviour of turning the html break into a TWiki variable break each time you edit this trailing space in the BR definition gets added again and again. We should fix that. It cannot be too difficult so I put this one urgent because it will affect any user of the plugin using textareas.
Note: This bug report is split out from
Item5208
--
TWiki:Main/KennethLavrsen
- 05 Jan 2008
I see now that the space is added by the conversion from
%BR%
to
<br />
by the core code.
Note that the spaces still give problems, even outside a table:
blablabla%BR%http://twiki.org%BR%_lurking around_%BR%*bold*%BR%
blablabla
http://twiki.org
_lurking around_
*bold*
So to get TML rendered you need to add the spaces:
blablabla%BR%http://twiki.org%BR% _lurking around_ %BR% *bold* %BR%
blablabla
http://twiki.org
lurking around bold
--
TWiki:Main.ArthurClemens
- 05 Jan 2008
My fix: remove added space after
%BR%
during editing; add space before linebreak to enable TML expansion.
--
TWiki:Main.ArthurClemens
- 05 Jan 2008
I have now added a space before each linebreak to allow TML expansion. This is only shown in view mode, not added on save.
Test:
| Shortinfo: | blablabla%BR%there's still a bug%BR%lurking around%BR%_italic_%BR%*bold* %EDITCELL{textarea,6x40,}% |
--
TWiki:Main.ArthurClemens
- 06 Jan 2008