maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r612978 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocParser.java
Date Thu, 17 Jan 2008 20:54:34 GMT
Author: ltheussl
Date: Thu Jan 17 12:54:30 2008
New Revision: 612978

URL: http://svn.apache.org/viewvc?rev=612978&view=rev
Log:
[DOXIA-201] <param> tags are always parsed as macro parameters

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocParser.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocParser.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocParser.java?rev=612978&r1=612977&r2=612978&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocParser.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocParser.java
Thu Jan 17 12:54:30 2008
@@ -198,6 +198,12 @@
 
                     macroParameters.put( paramName, paramValue );
                 }
+                else
+                {
+                    // param tag from non-macro object, see MSITE-288
+                    // TODO: remove
+                    handleRawText( sink, parser );
+                }
             }
         }
         else if ( parser.getName().equals( Tag.SCRIPT.toString() ) )
@@ -289,7 +295,12 @@
         }
         else if ( parser.getName().equals( Tag.PARAM.toString() ) )
         {
-            // do nothing
+            if ( !StringUtils.isNotEmpty( macroName ) )
+            {
+                // TODO: remove
+                sink.rawText( String.valueOf( LESS_THAN ) + String.valueOf( SLASH )
+                    + Tag.PARAM.toString() + String.valueOf( GREATER_THAN ));
+            }
         }
         else if ( parser.getName().equals( SECTION_TAG.toString() ) )
         {



Mime
View raw message