107 if ( $this->open ==
"\n" ) {
108 $accum = array_merge( [ $this->savedPrefix ], $this->parts[0]->out );
110 if ( $openingCount ===
false ) {
113 $s = substr( $this->open, 0, -1 );
115 substr( $this->open, -1 ),
116 $openingCount - strlen( $s )
118 $accum = [ $this->savedPrefix . $s ];
121 foreach ( $this->parts as $part ) {
124 } elseif ( is_string( $accum[$lastIndex] ) ) {
125 $accum[$lastIndex] .=
'|';
127 $accum[++$lastIndex] =
'|';
130 foreach ( $part->out as $node ) {
131 if ( is_string( $node ) && is_string( $accum[$lastIndex] ) ) {
132 $accum[$lastIndex] .= $node;
134 $accum[++$lastIndex] = $node;