This is resubmission of the previous patch, not yet committed, adds
xml:space="preserve" to the javadocs, thus documenting how the user can
preserve whitespace.

        --- Noel
Index: Redirect.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-james/src/java/org/apache/james/transport/mailets/Redirect.java,v
retrieving revision 1.5
diff -u -r1.5 Redirect.java
--- Redirect.java       28 Jul 2002 11:46:41 -0000      1.5
+++ Redirect.java       1 Aug 2002 17:58:43 -0000
@@ -137,8 +137,8 @@
 *<TR>
 *<TD width="20%">&lt;prefix&gt;</TD>
 *<TD width="80%">An optional subject prefix prepended to the original message
-*subject, for example..<BR>
-*Undeliverable mail:</TD>
+*subject, for example:<BR>
+*Undeliverable mail: </TD>
 *</TR>
 *<TR>
 *<TD width="20%">&lt;static&gt;</TD>
@@ -165,7 +165,8 @@
 *&lt;inline&gt;unaltered&lt;/inline&gt;<BR>
 *&lt;passThrough&gt;FALSE&lt;/passThrough&gt;<BR>
 *&lt;replyto&gt;postmaster&lt;/replyto&gt;<BR>
-*&lt;prefix&gt;[test mailing]&lt;/prefix&gt;<BR>
+*&lt;prefix xml:space="preserve"&gt;[test mailing] &lt;/prefix&gt;<BR>
+*&lt;!-- note the xml:space="preserve" to preserve whitespace --&gt;<BR>
 *&lt;static&gt;TRUE&lt;/static&gt;<BR>
 *&lt;passThrough&gt;FALSE&lt;/passThrough&gt;<BR>
 *&lt;/mailet&gt;<BR>
@@ -359,7 +360,7 @@
         if(getInitParameter("prefix") == null) {
             return "";
         } else {
-            return getInitParameter("prefix") + " ";
+            return getInitParameter("prefix");
         }
     }
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to