|
@@ 184-186 (lines=3) @@
|
| 181 |
|
|
| 182 |
|
if ( isset($matches['type']) && $matches['type'] == '=1' ) { // ordered list |
| 183 |
|
// We start from 1 to discard the first string, in fact, it's empty. |
| 184 |
|
for ( $i = 1; $i < $counter; $i++ ) |
| 185 |
|
if ( !empty($items[ $i ]) ) |
| 186 |
|
$buffer .= (string) ( $i ) . '. ' . trim($items[ $i ]) . PHP_EOL; |
| 187 |
|
} else { // unordered list |
| 188 |
|
// We start from 1 to discard the first string, in fact, it's empty. |
| 189 |
|
for ( $i = 1; $i < $counter; $i++ ) |
|
@@ 189-191 (lines=3) @@
|
| 186 |
|
$buffer .= (string) ( $i ) . '. ' . trim($items[ $i ]) . PHP_EOL; |
| 187 |
|
} else { // unordered list |
| 188 |
|
// We start from 1 to discard the first string, in fact, it's empty. |
| 189 |
|
for ( $i = 1; $i < $counter; $i++ ) |
| 190 |
|
if ( !empty($items[ $i ]) ) |
| 191 |
|
$buffer .= '- ' . trim($items[ $i ]) . PHP_EOL; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
// We need a like break above the list and another one below. |