Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -612,7 +612,7 @@ |
613 | 613 | # do we still qualify for any callback with remaining count? |
614 | 614 | $names = $rules[$piece->open]['names']; |
615 | 615 | $skippedBraces = 0; |
616 | | - |
| 616 | + $enclosingAccum =& $accum; |
617 | 617 | while ( $piece->count ) { |
618 | 618 | if ( array_key_exists( $piece->count, $names ) ) { |
619 | 619 | $stack->push( $piece ); |
— | — | @@ -622,6 +622,7 @@ |
623 | 623 | --$piece->count; |
624 | 624 | $skippedBraces ++; |
625 | 625 | } |
| 626 | + $enclosingAccum .= str_repeat( $piece->open, $skippedBraces ); |
626 | 627 | } |
627 | 628 | $flags = $stack->getFlags(); |
628 | 629 | extract( $flags ); |