maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject svn commit: r1777823 - in /maven/doxia/doxia/trunk/doxia-core/src: main/java/org/apache/maven/doxia/util/HtmlTools.java test/java/org/apache/maven/doxia/util/HtmlToolsTest.java
Date Sat, 07 Jan 2017 16:20:33 GMT
Author: michaelo
Date: Sat Jan  7 16:20:33 2017
New Revision: 1777823

URL: http://svn.apache.org/viewvc?rev=1777823&view=rev
Log:
[DOXIA-550] Change behavior of HtmlTools#encodeId()

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
    maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/util/HtmlToolsTest.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java?rev=1777823&r1=1777822&r2=1777823&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
Sat Jan  7 16:20:33 2017
@@ -381,7 +381,7 @@ public class HtmlTools
      *
      * <p>
      *   <b>Note</b>: this method is identical to
-     *   {@link DoxiaUtils#encodeId(String,boolean) DoxiaUtils.encodeId( id, true)},
+     *   {@link DoxiaUtils#encodeId(String,boolean) DoxiaUtils.encodeId( id, false )},
      *   the rules to encode an id are laid out there.
      * </p>
      *
@@ -391,7 +391,7 @@ public class HtmlTools
      */
     public static String encodeId( String id )
     {
-        return DoxiaUtils.encodeId( id, true );
+        return DoxiaUtils.encodeId( id, false );
     }
 
     /**

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/util/HtmlToolsTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/util/HtmlToolsTest.java?rev=1777823&r1=1777822&r2=1777823&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/util/HtmlToolsTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/util/HtmlToolsTest.java
Sat Jan  7 16:20:33 2017
@@ -102,8 +102,8 @@ public class HtmlToolsTest
         assertEquals( HtmlTools.encodeId( "a b-c123 " ), "a_b-c123" );
         assertEquals( HtmlTools.encodeId( "   anchor" ), "anchor" );
         assertEquals( HtmlTools.encodeId( "myAnchor" ), "myAnchor" );
-        assertEquals( HtmlTools.encodeId( "H\u00E5kon" ), "Hkon" );
-        assertEquals( HtmlTools.encodeId( "Theu\u00DFl" ), "Theul" );
+        assertEquals( HtmlTools.encodeId( "H\u00E5kon" ), "H.C3.A5kon" );
+        assertEquals( HtmlTools.encodeId( "Theu\u00DFl" ), "Theu.C3.9Fl" );
     }
 
     /**



Mime
View raw message