115 if ( $this->open ==
"\n" ) {
116 $accum = array_merge( [ $this->savedPrefix ], $this->parts[0]->out );
118 if ( $openingCount ===
false ) {
121 $s = substr( $this->open, 0, -1 );
123 substr( $this->open, -1 ),
124 $openingCount - strlen( $s )
126 $accum = [ $this->savedPrefix . $s ];
129 foreach ( $this->parts as $part ) {
132 } elseif ( is_string( $accum[$lastIndex] ) ) {
133 $accum[$lastIndex] .=
'|';
135 $accum[++$lastIndex] =
'|';
138 foreach ( $part->out as $node ) {
139 if ( is_string( $node ) && is_string( $accum[$lastIndex] ) ) {
140 $accum[$lastIndex] .= $node;
142 $accum[++$lastIndex] = $node;