dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RELEASE-NOTES-1.30: Add upgraded, added libraries based on git history
[lhc/web/wiklou.git]
/
includes
/
parser
/
BlockLevelPass.php
diff --git
a/includes/parser/BlockLevelPass.php
b/includes/parser/BlockLevelPass.php
index
599fbf6
..
fab9ab7
100644
(file)
--- a/
includes/parser/BlockLevelPass.php
+++ b/
includes/parser/BlockLevelPass.php
@@
-257,12
+257,17
@@
class BlockLevelPass {
$output .= $this->nextItem( $prefix[$commonPrefixLength - 1] );
}
$output .= $this->nextItem( $prefix[$commonPrefixLength - 1] );
}
+ # Close an open <dt> if we have a <dd> (":") starting on this line
+ if ( $this->DTopen && $commonPrefixLength > 0 && $prefix[$commonPrefixLength - 1] === ':' ) {
+ $output .= $this->nextItem( ':' );
+ }
+
# Open prefixes where appropriate.
if ( $lastPrefix && $prefixLength > $commonPrefixLength ) {
$output .= "\n";
}
while ( $prefixLength > $commonPrefixLength ) {
# Open prefixes where appropriate.
if ( $lastPrefix && $prefixLength > $commonPrefixLength ) {
$output .= "\n";
}
while ( $prefixLength > $commonPrefixLength ) {
- $char =
substr( $prefix, $commonPrefixLength, 1 )
;
+ $char =
$prefix[$commonPrefixLength]
;
$output .= $this->openList( $char );
if ( ';' === $char ) {
$output .= $this->openList( $char );
if ( ';' === $char ) {