You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by vs...@apache.org on 2009/05/27 19:26:01 UTC
svn commit: r779250 -
/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Author: vsiveton
Date: Wed May 27 17:26:01 2009
New Revision: 779250
URL: http://svn.apache.org/viewvc?rev=779250&view=rev
Log:
DOXIA-325: Not valid xhtml document if comment with minus character
o take care of minus char
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?rev=779250&r1=779249&r2=779250&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java (original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java Wed May 27 17:26:01 2009
@@ -241,6 +241,16 @@
resetState();
}
+ /** {@inheritDoc} */
+ public void comment( String comment )
+ {
+ if ( StringUtils.isNotEmpty( comment ) )
+ {
+ comment = StringUtils.replace( comment, "-", " -" );
+ }
+ super.comment( comment );
+ }
+
// ----------------------------------------------------------------------
// Public protected methods
// ----------------------------------------------------------------------