From d6aef270b6bb717bb086eb022c35149dbd82a7bf Mon Sep 17 00:00:00 2001 From: "ccooper%deadsquid.com" Date: Wed, 19 Oct 2005 01:46:56 +0000 Subject: [PATCH] - remove linebreaks from comments prior to display --- .../litmus/templates/en/default/reporting/test_results.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtools/litmus/templates/en/default/reporting/test_results.tmpl b/webtools/litmus/templates/en/default/reporting/test_results.tmpl index 6487c3343e5e..7be3510f9d36 100644 --- a/webtools/litmus/templates/en/default/reporting/test_results.tmpl +++ b/webtools/litmus/templates/en/default/reporting/test_results.tmpl @@ -6,7 +6,7 @@ var comments = new Array(); [% subscript=0 %] [% FOREACH result=results %] - comments[[% subscript %]] = "[% IF result.comments %][% FOREACH comment=result.comments %][% IF loop.count>1 %]
[% END %]

[% IF comment.user.email %][% comment.user.email.replace('\@','@') %][% ELSE %]Anonymous[% END %]
[% comment.submission_time.strftime("%Y-%m-%d %T %Z") %]

[% icon %] [% comment.comment %]

[% END %][% END %]"; + comments[[% subscript %]] = "[% IF result.comments %][% FOREACH comment=result.comments %][% IF loop.count>1 %]
[% END %]

[% IF comment.user.email %][% comment.user.email.replace('\@','@') %][% ELSE %]Anonymous[% END %]
[% comment.submission_time.strftime("%Y-%m-%d %T %Z") %]

[% icon %] [% comment.comment.replace('"','\"').replace('\r\n','') %]

[% END %][% END %]"; [% subscript=subscript+1 %] [% END %]