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