scripts, making for cleaner reporting during batch jobs. PHP errors will also
be redirected in most cases on PHP 5.2.4 and later, switching 'display_errors'
to 'stderr' at runtime.
-
+* (bug 12148) Text highlight wasn't applied to cleanly deleted and added
+ lines in diff output
== Parser changes in 1.12 ==
function _added( $lines ) {
foreach ($lines as $line) {
echo '<tr>' . $this->emptyLine() .
- $this->addedLine( htmlspecialchars ( $line ) ) . "</tr>\n";
+ $this->addedLine( '<ins class="diffchange">' .
+ htmlspecialchars ( $line ) . '</ins>' ) . "</tr>\n";
}
}
function _deleted($lines) {
foreach ($lines as $line) {
- echo '<tr>' . $this->deletedLine( htmlspecialchars ( $line ) ) .
+ echo '<tr>' . $this->deletedLine( '<del class="diffchange">' .
+ htmlspecialchars ( $line ) . '</del>' ) .
$this->emptyLine() . "</tr>\n";
}
}