You are here

function TableDiffFormatter::_context in Diff 5

Overrides DiffFormatter::_context

File

./DiffEngine.php, line 1093

Class

TableDiffFormatter
Wikipedia Table style diff formatter. @todo document @private @subpackage DifferenceEngine

Code

function _context($lines) {
  foreach ($lines as $line) {
    echo '<tr>' . $this
      ->contextLine(check_plain($line)) . $this
      ->contextLine(check_plain($line)) . "</tr>\n";
  }
}