Correct typo and code format

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219835 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vincent Siveton 2005-07-20 02:57:54 +00:00
parent 43c132f0fd
commit 33b34579e1
1 changed files with 7 additions and 7 deletions

View File

@ -39,17 +39,17 @@
#end
#end
#macro ( displayTree $display $item)
#if ( $item.getChildren() && $item.getChildCount() > 0 )
#macro ( displayTree $display $item )
#if ( $item && $item.getChildren() && $item.getChildCount() > 0 )
#foreach( $subitem in $item.getChildren() )
#set ( $subitemHref = $PathTool.calculateLink( $subitem.getAttribute( "href" ), $relativePath ) )
#set ( $subitemHref = $$subitemHref.replaceAll( "\\", "/" ) )
#set ( $subitemHref = $subitemHref.replaceAll( "\\", "/" ) )
#if ( $currentFileName == $subitemHref )
#set ( $display = true )
#end
#displayTree($display $subitem)
#displayTree( $display $subitem )
#end
#end
#end
@ -60,7 +60,7 @@
#set ( $currentFileName = $currentFileName.replaceAll( "\\", "/" ) )
#set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) )
#if ( $item.getChildCount() > 0 )
#if ( $item && $item.getChildCount() > 0 )
#if ( ( $item.getAttribute( "collapse" ) ) && ( $item.getAttribute( "collapse" ).equalsIgnoreCase( "false" ) ) )
#set ( $collapse = "expanded" )
#else
@ -79,10 +79,10 @@
<a href="$currentItemHref">$item.getAttribute( "name" )</a>
#end
</li>
#if ( $item.getChildren() && $item.getChildCount() > 0 )
#if ( $item && $item.getChildren() && $item.getChildCount() > 0 )
#set ( $display = false )
#set ( $itemTmp = $item )
#displayTree($display $itemTmp)
#displayTree( $display $itemTmp )
#if ( $collapse == "expanded" || $display )
<ul>