private void openMissingSections()

in doxia-core/src/main/java/org/apache/maven/doxia/parser/Xhtml5BaseParser.java [667:683]


    private void openMissingSections(int newLevel, Sink sink) {
        while (this.headingLevel < newLevel && this.sectionLevel < newLevel) {
            this.headingLevel++;

            if (headingLevel == Sink.SECTION_LEVEL_5) {
                sink.section5();
            } else if (headingLevel == Sink.SECTION_LEVEL_4) {
                sink.section4();
            } else if (headingLevel == Sink.SECTION_LEVEL_3) {
                sink.section3();
            } else if (headingLevel == Sink.SECTION_LEVEL_2) {
                sink.section2();
            } else if (headingLevel == Sink.SECTION_LEVEL_1) {
                sink.section1();
            }
        }
    }