Item10050: CommentPlugin prompt adds newlines that prevent COMMENT inside TML tables

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension CommentPlugin  
CommentPlugin prompt adds newlines that prevent COMMENT inside TML tables

We have for some reason plenty of \n added. Make the source HTML look nice but breaks TML tables

Also CGI::start_form adds \n so must be removed.

I use COMMENT in tables like this

Template

---+++ signature
Comments, signed and dated, at the the anchor/location/COMMENT

%TMPL:DEF{PROMPT:signature}%<input %DISABLED% type="text" size="30" name="comment" value="Approved" class="foswikiInputField" /><input %DISABLED% type="submit" class="foswikiButton" value="%button|Add Signature%" />%TMPL:END%

%TMPL:DEF{OUTPUT:signature}%%POS:BEFORE%%WIKIUSERNAME% - %SERVERTIME% - %URLPARAM{"comment" encode="off"}%%TMPL:END%

Example use

Greg Brun GeorgeClark - 15 Jan 2012 - 20:21 - Approved
Gene Delayed

where the COMMENT tag is

%COMMENT{type="signature" remove="on"}%

Example requires local install of template

-- KennethLavrsen - 18 Nov 2010

 

ItemTemplate edit

Summary CommentPlugin prompt adds newlines that prevent COMMENT inside TML tables
ReportedBy KennethLavrsen
Codebase 1.1.2, trunk
SVN Range
AppliesTo Extension
Component CommentPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:10008 Foswikirev:10009
TargetRelease patch
ReleasedIn 1.1.3
Topic revision: r6 - 15 Jan 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License