cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1297844 - /cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java
Date Wed, 07 Mar 2012 02:55:14 GMT
Author: dkulp
Date: Wed Mar  7 02:55:13 2012
New Revision: 1297844

URL: http://svn.apache.org/viewvc?rev=1297844&view=rev
Log:
Make sure nowrap attributes on td are HTML4 transitional compliant

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java?rev=1297844&r1=1297843&r2=1297844&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java Wed Mar  7 02:55:13
2012
@@ -153,7 +153,10 @@ public class ConfluenceCleanupWriter ext
         } else if ("td".equals(localName.toLowerCase())
             || "td".equals(qName.toLowerCase())) {
             curTrCount++;
-            //newAtts.addMapping("nowrap", "nowrap");            
+            if (newAtts.getIndex("nowrap") != -1) {
+                //make sure nowrap attribute is set to nowrap per HTML spec
+                newAtts.addMapping("nowrap", "nowrap");
+            }
         } else if ("tr".equals(localName.toLowerCase())
             || "tr".equals(qName.toLowerCase())) {
             trStack.push(curTrCount);



Mime
View raw message