db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r480160 - /db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java
Date Tue, 28 Nov 2006 19:13:43 GMT
Author: myrnavl
Date: Tue Nov 28 11:13:42 2006
New Revision: 480160

URL: http://svn.apache.org/viewvc?view=rev&rev=480160
Log:
DERBY-2110 - removing innocent spaces in the tags

Modified:
    db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java

Modified: db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java?view=diff&rev=480160&r1=480159&r2=480160
==============================================================================
--- db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java (original)
+++ db/derby/code/trunk/java/build/org/apache/derbyBuild/MessageBuilder.java Tue Nov 28 11:13:42
2006
@@ -84,7 +84,7 @@
     private static  final   String  REF_GUIDE_BOILERPLATE =
         "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
         "<!DOCTYPE reference PUBLIC \"-//OASIS//DTD DITA Reference//EN\"\n" +
-        " \"../../derby/docs/trunk/src/dtd/reference.dtd\">\n";
+        " \"../dtd/reference.dtd\">\n";
 
     private static  final   String  REF_GUIDE_NOTES =
         "<!-- \n" +
@@ -107,7 +107,7 @@
         "<!-- \n" +
         "NOTE: this file is generated by the MessageBuilder task as part of a\n" +
         "Derby build. Please do not hand-edit this file. Instead, please edit\n" +
-        "the corresponding text in MessageBuilder.\n" +
+        "the corresponding text in messages.xml and/or MessageBuilder.\n" +
         "-->\n";
     
     /////////////////////////////////////////////////////////////////////////
@@ -206,7 +206,10 @@
             if ( _vacuous ) { return; }
 
             indent( );
-            _pw.println( "<" + tag + " " + attributes + " />");
+            if ( attributes.length() >0)
+                _pw.println( "<" + tag + " " + attributes + "/>");
+            else
+                _pw.println( "<" + tag + "/>");
         }
 
         /**
@@ -233,7 +236,10 @@
             if ( _vacuous ) { return; }
 
             indent();
-            _pw.println( "<" + tag + " " + attributes + " >");
+            if (attributes.length() > 0)
+                _pw.println( "<" + tag + " " + attributes + ">");
+            else
+                _pw.println( "<" + tag + ">");
 
             _tagStack.add( tag );
         }
@@ -279,7 +285,10 @@
             if ( _vacuous ) { return; }
 
             indent();
-            _pw.print( "<" + tag + " " + attributes + " >");
+            if ( attributes.length() > 0 )
+                _pw.print( "<" + tag + " " + attributes + ">");
+            else
+                _pw.print( "<" + tag + ">");
             _pw.print( text );
             _pw.println( "</" + tag + ">");
         }



Mime
View raw message