maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r733389 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
Date Sat, 10 Jan 2009 22:38:37 GMT
Author: ltheussl
Date: Sat Jan 10 14:38:36 2009
New Revision: 733389

URL: http://svn.apache.org/viewvc?rev=733389&view=rev
Log:
Fix comment parsing when comments are not separated by empty lines (ie separate blocks).

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java?rev=733389&r1=733388&r2=733389&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-apt/src/main/java/org/apache/maven/doxia/module/apt/AptParser.java
Sat Jan 10 14:38:36 2009
@@ -1610,6 +1610,13 @@
                         AptParser.this.nextLine();
                         break;
                     }
+                    else if ( ( AptParser.charAt( l, length, i ) == COMMENT
+                            && AptParser.charAt( l, length, i + 1 ) == COMMENT )
+                            || type == COMMENT_BLOCK )
+                    {
+                        // parse comments as separate blocks line by line
+                        break;
+                    }
 
                     buffer.append( EOL );
                     buffer.append( l );



Mime
View raw message