You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2004/05/13 13:22:19 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/util/velocity VelocityEmail.java
epugh 2004/05/13 04:22:19
Modified: src/java/org/apache/turbine/util/velocity VelocityEmail.java
Log:
Don't use deprecated method for wrapping text
Revision Changes Path
1.12 +4 -3 jakarta-turbine-2/src/java/org/apache/turbine/util/velocity/VelocityEmail.java
Index: VelocityEmail.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/velocity/VelocityEmail.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- VelocityEmail.java 25 Mar 2003 17:15:31 -0000 1.11
+++ VelocityEmail.java 13 May 2004 11:22:19 -0000 1.12
@@ -57,6 +57,7 @@
import javax.mail.MessagingException;
import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang.WordUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -295,8 +296,8 @@
// If the caller desires word-wrapping, do it here
if (wordWrap > 0)
{
- body = org.apache.turbine.util.StringUtils.wrapText(body,
- System.getProperty("line.separator"), wordWrap);
+ body = WordUtils.wrap(body,wordWrap,
+ System.getProperty("line.separator"),true);
}
setMsg(body);
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org