@@ 236-239 (lines=4) @@ | ||
233 | # So we check for : in the remainder text to split up the |
|
234 | # title and definition, without b0rking links. |
|
235 | $term = $t2 = ''; |
|
236 | if ( $this->findColonNoLinks( $t, $term, $t2 ) !== false ) { |
|
237 | $t = $t2; |
|
238 | $output .= $term . $this->nextItem( ':' ); |
|
239 | } |
|
240 | } |
|
241 | } elseif ( $prefixLength || $lastPrefixLength ) { |
|
242 | # We need to open or close prefixes, or both. |
|
@@ 267-273 (lines=7) @@ | ||
264 | $char = substr( $prefix, $commonPrefixLength, 1 ); |
|
265 | $output .= $this->openList( $char ); |
|
266 | ||
267 | if ( ';' === $char ) { |
|
268 | # @todo FIXME: This is dupe of code above |
|
269 | if ( $this->findColonNoLinks( $t, $term, $t2 ) !== false ) { |
|
270 | $t = $t2; |
|
271 | $output .= $term . $this->nextItem( ':' ); |
|
272 | } |
|
273 | } |
|
274 | ++$commonPrefixLength; |
|
275 | } |
|
276 | if ( !$prefixLength && $lastPrefix ) { |