You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/10/18 20:57:23 UTC

svn commit: r465338 - /incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp

Author: snoopdave
Date: Wed Oct 18 11:57:22 2006
New Revision: 465338

URL: http://svn.apache.org/viewvc?view=rev&rev=465338
Log:
Truncate display of comments longer than 3000 characters -- we might want to go a couple steps further and put an upper limit on the size of each comment

Modified:
    incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp

Modified: incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp?view=diff&rev=465338&r1=465337&r2=465338
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp (original)
+++ incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp Wed Oct 18 11:57:22 2006
@@ -370,7 +370,11 @@
                     <%-- comment content --%>
                     <br />
                     <span class="details">
-                       <pre><str:wordWrap><c:out value="${comment.content}" escapeXml="true" /></str:wordWrap></pre>
+                       <pre><str:wordWrap>
+                            <str:truncateNicely upper="3000" appendToEnd="...">
+                                <c:out value="${comment.content}" escapeXml="true" />
+                            </str:truncateNicely>
+                       </str:wordWrap></pre>
                     </span>
                     
                 </td>