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 lt...@apache.org on 2007/08/21 17:06:05 UTC
svn commit: r568157 -
/maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/SectionBlock.java
Author: ltheussl
Date: Tue Aug 21 08:06:04 2007
New Revision: 568157
URL: http://svn.apache.org/viewvc?rev=568157&view=rev
Log:
Correct order of sink events. Use new constants of Sink interface.
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/SectionBlock.java
Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/SectionBlock.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/SectionBlock.java?rev=568157&r1=568156&r2=568157&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/SectionBlock.java (original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/SectionBlock.java Tue Aug 21 08:06:04 2007
@@ -40,27 +40,27 @@
public void traverse( Sink sink )
{
- if ( level == 1 )
+ if ( level == Sink.SECTION_LEVEL_1 )
{
sink.section1();
sink.sectionTitle1();
}
- else if ( level == 2 )
+ else if ( level == Sink.SECTION_LEVEL_2 )
{
sink.section2();
sink.sectionTitle2();
}
- else if ( level == 3 )
+ else if ( level == Sink.SECTION_LEVEL_3 )
{
sink.section3();
sink.sectionTitle3();
}
- else if ( level == 4 )
+ else if ( level == Sink.SECTION_LEVEL_4 )
{
sink.section4();
sink.sectionTitle4();
}
- else if ( level == 5 )
+ else if ( level == Sink.SECTION_LEVEL_5 )
{
sink.section5();
sink.sectionTitle5();
@@ -68,31 +68,31 @@
sink.text( title );
- if ( level == 1 )
+ if ( level == Sink.SECTION_LEVEL_1 )
{
- sink.section1_();
sink.sectionTitle1_();
+ sink.section1_();
}
- else if ( level == 2 )
+ else if ( level == Sink.SECTION_LEVEL_2 )
{
- sink.section2_();
sink.sectionTitle2_();
+ sink.section2_();
}
- else if ( level == 3 )
+ else if ( level == Sink.SECTION_LEVEL_3 )
{
- sink.section3_();
sink.sectionTitle3_();
+ sink.section3_();
}
- else if ( level == 4 )
+ else if ( level == Sink.SECTION_LEVEL_4 )
{
- sink.section4_();
sink.sectionTitle4_();
+ sink.section4_();
}
- else if ( level == 5 )
+ else if ( level == Sink.SECTION_LEVEL_5 )
{
- sink.section5_();
sink.sectionTitle5_();
+ sink.section5_();
}
}
}