jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r558164 - /jackrabbit/trunk/contrib/jcr-ext/src/main/java/org/apache/jackrabbit/xml/DocumentViewExportVisitor.java
Date Fri, 20 Jul 2007 21:55:06 GMT
Author: jukka
Date: Fri Jul 20 14:55:05 2007
New Revision: 558164

URL: http://svn.apache.org/viewvc?view=rev&rev=558164
Log:
JCR-971: Applied the fix suggested by Alessandro Bologna

Modified:
    jackrabbit/trunk/contrib/jcr-ext/src/main/java/org/apache/jackrabbit/xml/DocumentViewExportVisitor.java

Modified: jackrabbit/trunk/contrib/jcr-ext/src/main/java/org/apache/jackrabbit/xml/DocumentViewExportVisitor.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/jcr-ext/src/main/java/org/apache/jackrabbit/xml/DocumentViewExportVisitor.java?view=diff&rev=558164&r1=558163&r2=558164
==============================================================================
--- jackrabbit/trunk/contrib/jcr-ext/src/main/java/org/apache/jackrabbit/xml/DocumentViewExportVisitor.java
(original)
+++ jackrabbit/trunk/contrib/jcr-ext/src/main/java/org/apache/jackrabbit/xml/DocumentViewExportVisitor.java
Fri Jul 20 14:55:05 2007
@@ -433,7 +433,7 @@
 
         for (int i = 0; i < characters.length; i++) {
             char ch = characters[i];
-            if ((i == 0) ? XMLChar.isNCNameStart(ch) : XMLChar.isNCName(ch)) {
+            if ((i == 0) ? !XMLChar.isNCNameStart(ch) : !XMLChar.isNCName(ch)) {
                 String hex = Integer.toHexString((int) ch);
                 buffer.append("_x");
                 for (int j = 4; j > hex.length(); j--) {



Mime
View raw message