You are here

function UnifiedDiffFormatter::_block_header in Configuration Management 7

File

includes/diff.engine.inc, line 14

Class

UnifiedDiffFormatter
"Unified" diff formatter.

Code

function _block_header($xbeg, $xlen, $ybeg, $ylen) {
  if ($xlen != 1) {
    $xbeg .= "," . $xlen;
  }
  if ($ylen != 1) {
    $ybeg .= "," . $ylen;
  }
  return "@@ -{$xbeg} +{$ybeg} @@\n";
}