You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/07/02 04:24:12 UTC

cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html ErrorsTag.java

dgraham     2003/07/01 19:24:12

  Modified:    src/share/org/apache/struts/taglib/html ErrorsTag.java
  Log:
  Don't render new lines in output.  PR# 17418.
  
  Revision  Changes    Path
  1.22      +5 -7      jakarta-struts/src/share/org/apache/struts/taglib/html/ErrorsTag.java
  
  Index: ErrorsTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/ErrorsTag.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ErrorsTag.java	15 May 2003 23:43:42 -0000	1.21
  +++ ErrorsTag.java	2 Jul 2003 02:24:12 -0000	1.22
  @@ -122,6 +122,7 @@
   
       /**
        * The line ending string.
  +     * @deprecated No longer used.
        */
       protected static String lineEnd = System.getProperty("line.separator");
   
  @@ -223,7 +224,6 @@
                               "errors.header");
                               
                       results.append(message);
  -                    results.append(lineEnd);
                   }
                   headerDone = true;
               }
  @@ -248,7 +248,6 @@
                       
               if (message != null) {
                   results.append(message);
  -                results.append(lineEnd);
               }
               
               if (suffixPresent) {
  @@ -266,7 +265,6 @@
               message =
                   RequestUtils.message(pageContext, bundle, locale, "errors.footer");
               results.append(message);
  -            results.append(lineEnd);
           }
   
           ResponseUtils.write(pageContext, results.toString());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org