You are here: Foswiki>Tasks Web>Item10050 (15 Jan 2012, GeorgeClark)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Extension
Component: CommentPlugin
Branches:
Reported By: KennethLavrsen
Waiting For:
Last Change By: GeorgeClark
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 distro:6d75fd61ff2d distro:00e4b5bd99c6
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy