105 if ( $this->open ==
"\n" ) {
106 $accum = array_merge( [ $this->savedPrefix ], $this->parts[0]->out );
108 if ( $openingCount ===
false ) {
111 $s = substr( $this->open, 0, -1 );
113 substr( $this->open, -1 ),
114 $openingCount - strlen( $s )
116 $accum = [ $this->savedPrefix . $s ];
119 foreach ( $this->parts as $part ) {
122 } elseif ( is_string( $accum[$lastIndex] ) ) {
123 $accum[$lastIndex] .=
'|';
125 $accum[++$lastIndex] =
'|';
128 foreach ( $part->out as $node ) {
129 if ( is_string( $node ) && is_string( $accum[$lastIndex] ) ) {
130 $accum[$lastIndex] .= $node;
132 $accum[++$lastIndex] = $node;