myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html HtmlResponseWriterImpl.java
Date Sun, 24 Oct 2004 23:30:35 GMT
oros        2004/10/24 16:30:35

  Modified:    src/myfaces/org/apache/myfaces/renderkit/html
                        HtmlResponseWriterImpl.java
  Log:
  do not convert newline to <br> and space to &nbps; as this is not required by
the spec
  
  Revision  Changes    Path
  1.29      +6 -9      incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html/HtmlResponseWriterImpl.java
  
  Index: HtmlResponseWriterImpl.java
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/src/myfaces/org/apache/myfaces/renderkit/html/HtmlResponseWriterImpl.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- HtmlResponseWriterImpl.java	13 Oct 2004 11:51:00 -0000	1.28
  +++ HtmlResponseWriterImpl.java	24 Oct 2004 23:30:35 -0000	1.29
  @@ -36,6 +36,9 @@
    * @author Anton Koinov
    * @version $Revision$ $Date$
    * $Log$
  + * Revision 1.29  2004/10/24 23:30:35  oros
  + * do not convert newline to <br> and space to &nbps; as this is not required
by the spec
  + *
    * Revision 1.28  2004/10/13 11:51:00  matze
    * renamed packages to org.apache
    *
  @@ -375,15 +378,9 @@
           {
               _writer.write(strValue);
           }
  -        else if (isTextarea())
  -        {
  -            // For textareas we must *not* map successive spaces to &nbsp or Newlines
to <br/>
  -            _writer.write(HTMLEncoder.encode(strValue, false, false));
  -        }
           else
           {
  -            // We map successive spaces to &nbsp; and Newlines to <br/>
  -            _writer.write(HTMLEncoder.encode(strValue, true, true));
  +            _writer.write(HTMLEncoder.encode(strValue, false, false));
           }
       }
   
  
  
  

Mime
View raw message