Add comment to TableDiffFormatter::blockHeader

magic strings should have a comment

Change-Id: I23fc7a4de31e22383f0a6ffd1db56717615cfa0c
This commit is contained in:
umherirrender 2014-05-28 21:51:54 +02:00 committed by Umherirrender
parent 040060e2b7
commit c249dfc291

View file

@ -60,6 +60,8 @@ class TableDiffFormatter extends DiffFormatter {
* @return string
*/
protected function blockHeader( $xbeg, $xlen, $ybeg, $ylen ) {
// '<!--LINE \d+ -->' get replaced by a localised line number
// in DifferenceEngine::localiseLineNumbers
$r = '<tr><td colspan="2" class="diff-lineno"><!--LINE ' . $xbeg . "--></td>\n" .
'<td colspan="2" class="diff-lineno"><!--LINE ' . $ybeg . "--></td></tr>\n";