axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Daniels" <gdani...@macromedia.com>
Subject Re: cvs commit: xml-axis/java/src/org/apache/axis/encoding SerializationContext.java
Date Sat, 04 Aug 2001 13:56:24 GMT
Sam, should all these "\n"s be System.getProperty("line.separator")s?

--G

----- Original Message -----
From: <rubys@apache.org>
To: <xml-axis-cvs@apache.org>
Sent: Saturday, August 04, 2001 9:37 AM
Subject: cvs commit: xml-axis/java/src/org/apache/axis/encoding
SerializationContext.java


> rubys       01/08/04 06:37:26
>
>   Modified:    java/src/org/apache/axis/encoding SerializationContext.java
>   Log:
>   Omit trailing newline at the end of the document.
>
>   Revision  Changes    Path
>   1.27      +4 -3
xml-axis/java/src/org/apache/axis/encoding/SerializationContext.java
>
>   Index: SerializationContext.java
>   ===================================================================
>   RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/encoding/SerializationContext.java,
v
>   retrieving revision 1.26
>   retrieving revision 1.27
>   diff -u -r1.26 -r1.27
>   --- SerializationContext.java 2001/08/04 03:50:55 1.26
>   +++ SerializationContext.java 2001/08/04 13:37:26 1.27
>   @@ -359,9 +359,10 @@
>              indent--;
>              for (int i=0; i<indent; i++) writer.write(' ');
>            }
>   -        StringBuffer buf = new StringBuffer();
>   -        buf.append("</" + elementQName + ">\n");
>   -        writer.write(buf.toString());
>   +        writer.write("</");
>   +        writer.write(elementQName);
>   +        writer.write('>');
>   +        if (indent>0) writer.write('\n');
>            writer.flush();
>            onlyXML=true;
>        }
>
>
>
>


Mime
View raw message