- remove linebreaks from comments prior to display

This commit is contained in:
ccooper%deadsquid.com 2005-10-19 01:46:56 +00:00
Родитель 3118d1e761
Коммит d6aef270b6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 %]<hr/>[% END %]<p class='comment'><b>[% IF comment.user.email %]<a href=\"mailto:[% comment.user.email.replace('\@','&#64;') %]\">[% comment.user.email.replace('\@','&#64;') %]</a>[% ELSE %]Anonymous[% END %]<br/>[% comment.submission_time.strftime("%Y-%m-%d&nbsp;%T %Z") %]</b><br/>[% icon %]&nbsp;[% comment.comment %]<br/></p>[% END %][% END %]";
comments[[% subscript %]] = "[% IF result.comments %][% FOREACH comment=result.comments %][% IF loop.count>1 %]<hr/>[% END %]<p class='comment'><b>[% IF comment.user.email %]<a href=\"mailto:[% comment.user.email.replace('\@','&#64;') %]\">[% comment.user.email.replace('\@','&#64;') %]</a>[% ELSE %]Anonymous[% END %]<br/>[% comment.submission_time.strftime("%Y-%m-%d&nbsp;%T %Z") %]</b><br/>[% icon %]&nbsp;[% comment.comment.replace('"','\"').replace('\r\n','') %]<br/></p>[% END %][% END %]";
[% subscript=subscript+1 %]
[% END %]
</script>