@@ 79-86 (lines=8) @@ | ||
76 | continue; |
|
77 | } |
|
78 | ||
79 | if ($leveldiff > 1) { |
|
80 | $output .= '</li>'; |
|
81 | for ($i = $leveldiff; $i > 1; --$i) { |
|
82 | $output .= sprintf("\n%s</ul>\n%s</li>\n", |
|
83 | str_repeat("\t", $level + $i + 1), |
|
84 | str_repeat("\t", $level + $i)); |
|
85 | } |
|
86 | } |
|
87 | ||
88 | if ($level < $open) { |
|
89 | if (($level - $open) == -1) { |
|
@@ 182-189 (lines=8) @@ | ||
179 | continue; |
|
180 | } |
|
181 | ||
182 | if ($leveldiff > 1) { |
|
183 | $output .= '</li>'; |
|
184 | for ($i = $leveldiff; $i > 1; --$i) { |
|
185 | $output .= sprintf("\n%s</ul>\n%s</li>\n", |
|
186 | str_repeat("\t", $level + $i + 1), |
|
187 | str_repeat("\t", $level + $i)); |
|
188 | } |
|
189 | } |
|
190 | ||
191 | if ($level < $open) { |
|
192 | if (($level - $open) == -1) { |