edits as $edit ) { if ( $edit->orig ) { $xlen += count( $edit->orig ); } if ( $edit->closing ) { $ylen += count( $edit->closing ); } } // Just render the diff with no preprocessing $this->startDiff(); $this->block( 1, $xlen, 1, $ylen, $diff->edits ); return $this->endDiff(); } }