42 if ( $this->open ==
"\n" ) {
43 $accum = array_merge( [ $this->savedPrefix ], $this->parts[0]->out );
45 if ( $openingCount ===
false ) {
48 $s = substr( $this->open, 0, -1 );
50 substr( $this->open, -1 ),
51 $openingCount - strlen(
$s )
53 $accum = [ $this->savedPrefix .
$s ];
56 foreach ( $this->parts as $part ) {
59 } elseif ( is_string( $accum[$lastIndex] ) ) {
60 $accum[$lastIndex] .=
'|';
62 $accum[++$lastIndex] =
'|';
65 foreach ( $part->out as $node ) {
66 if ( is_string( $node ) && is_string( $accum[$lastIndex] ) ) {
67 $accum[$lastIndex] .= $node;
69 $accum[++$lastIndex] = $node;