# Notice that WordLevelDiff returns HTML-escaped output.
# Hence, we will be calling addedLine/deletedLine without HTML-escaping.
- while ( $line = array_shift( $del ) ) {
+ $line = array_shift( $del );
+ while ( $line ) {
$aline = array_shift( $add );
echo '<tr>' . $this->deletedLine( $line ) .
$this->addedLine( $aline ) . "</tr>\n";
+ $line = array_shift( $del );
}
foreach ( $add as $line ) { # If any leftovers
echo '<tr>' . $this->emptyLine() .