tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1126171 - /tapestry/tapestry5/trunk/tapestry-javadoc/src/main/java/org/apache/tapestry5/javadoc/XDocStreamer.java
Date Sun, 22 May 2011 19:09:13 GMT
Author: hlship
Date: Sun May 22 19:09:13 2011
New Revision: 1126171

URL: http://svn.apache.org/viewvc?rev=1126171&view=rev
Log:
TAP5-1528: Properly emit a space before every attribute name, including the first

Modified:
    tapestry/tapestry5/trunk/tapestry-javadoc/src/main/java/org/apache/tapestry5/javadoc/XDocStreamer.java

Modified: tapestry/tapestry5/trunk/tapestry-javadoc/src/main/java/org/apache/tapestry5/javadoc/XDocStreamer.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-javadoc/src/main/java/org/apache/tapestry5/javadoc/XDocStreamer.java?rev=1126171&r1=1126170&r2=1126171&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-javadoc/src/main/java/org/apache/tapestry5/javadoc/XDocStreamer.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-javadoc/src/main/java/org/apache/tapestry5/javadoc/XDocStreamer.java
Sun May 22 19:09:13 2011
@@ -180,12 +180,7 @@ public class XDocStreamer
 
             for (int i = 0; i < atts.getLength(); i++)
             {
-                if (i > 0)
-                {
-                    write(" ");
-                }
-
-                write(String.format("%s=\"%s\"", atts.getLocalName(i), atts.getValue(i)));
+                write(String.format(" %s=\"%s\"", atts.getLocalName(i), atts.getValue(i)));
             }
 
             write(">");



Mime
View raw message