117 if ( $this->open ==
"\n" ) {
118 $accum = array_merge( [ $this->savedPrefix ], $this->parts[0]->out );
120 if ( $openingCount ===
false ) {
123 $s = substr( $this->open, 0, -1 );
125 substr( $this->open, -1 ),
126 $openingCount - strlen( $s )
128 $accum = [ $this->savedPrefix . $s ];
131 foreach ( $this->parts as $part ) {
134 } elseif ( is_string( $accum[$lastIndex] ) ) {
135 $accum[$lastIndex] .=
'|';
137 $accum[++$lastIndex] =
'|';
140 foreach ( $part->out as $node ) {
141 if ( is_string( $node ) && is_string( $accum[$lastIndex] ) ) {
142 $accum[$lastIndex] .= $node;
144 $accum[++$lastIndex] = $node;