| @@ 642-649 (lines=8) @@ | ||
| 639 | continue; | |
| 640 | } | |
| 641 | ||
| 642 |             if ($leveldiff > 1) { | |
| 643 | $output .= '</li>'; | |
| 644 |                 for ($i = $leveldiff; $i > 1; $i--) { | |
| 645 |                     $output .= sprintf("\n%s</ul>\n%s</li>\n", | |
| 646 |                         str_repeat("\t", $level + $i + 1), | |
| 647 |                         str_repeat("\t", $level + $i)); | |
| 648 | } | |
| 649 | } | |
| 650 | ||
| 651 |             if ($level < $open) { | |
| 652 |                 if (($level - $open) == -1) { | |
| @@ 81-88 (lines=8) @@ | ||
| 78 | continue; | |
| 79 | } | |
| 80 | ||
| 81 |                 if ($leveldiff > 1) { | |
| 82 | $output .= '</li>'; | |
| 83 |                     for ($i = $leveldiff; $i > 1; $i--) { | |
| 84 |                         $output .= sprintf("\n%s</ul>\n%s</li>\n", | |
| 85 |                             str_repeat("\t", $level + $i + 1), | |
| 86 |                             str_repeat("\t", $level + $i)); | |
| 87 | } | |
| 88 | } | |
| 89 | ||
| 90 |                 if ($level < $open) { | |
| 91 |                     if (($level - $open) == -1) { | |
| @@ 181-188 (lines=8) @@ | ||
| 178 | continue; | |
| 179 | } | |
| 180 | ||
| 181 |                 if ($leveldiff > 1) { | |
| 182 | $output .= '</li>'; | |
| 183 |                     for ($i = $leveldiff; $i > 1; $i--) { | |
| 184 |                         $output .= sprintf("\n%s</ul>\n%s</li>\n", | |
| 185 |                             str_repeat("\t", $level + $i + 1), | |
| 186 |                             str_repeat("\t", $level + $i)); | |
| 187 | } | |
| 188 | } | |
| 189 | ||
| 190 |                 if ($level < $open) { | |
| 191 |                     if (($level - $open) == -1) { | |