Skip to content

Commit 44a6ab0

Browse files
committed
fix tests
1 parent 0db511d commit 44a6ab0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/jblond/Diff/Renderer/Html/HtmlArray.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private function getChangeExtent($fromLine, $toLine)
218218
/**
219219
* Format a series of lines suitable for output in a HTML rendered diff.
220220
* This involves replacing tab characters with spaces, making the HTML safe
221-
* for output, ensuring that double spaces are replaced with   etc.
221+
* for output, ensuring that double spaces are replaced with   etc.
222222
*
223223
* @param array $lines Array of lines to format.
224224
* @return array Array of the formatted lines.
@@ -236,7 +236,7 @@ protected function formatLines($lines)
236236
}
237237

238238
/**
239-
* Replace a string containing spaces with a HTML representation using  .
239+
* Replace a string containing spaces with a HTML representation using  .
240240
*
241241
* @param array $matches The string of spaces.
242242
* @return string The HTML representation of the string.
@@ -252,7 +252,7 @@ protected function fixSpaces($matches)
252252
}
253253
$div = floor($count / 2);
254254
$mod = $count % 2;
255-
$buffer .= str_repeat('  ', $div).str_repeat(' ', $mod);
255+
$buffer .= str_repeat('  ', $div).str_repeat(' ', $mod);
256256
}
257257

258258
$div = floor($count / 2);

tests/Diff/Renderer/ArrayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testRenderFixesSpaces()
4949
'base' => array(
5050
'offset' => 0,
5151
'lines' => array(
52-
'<del>&nbsp; &nbsp;</del>a',
52+
'<del>&#xA0; &#xA0;</del>a',
5353
)
5454
),
5555
'changed' => array(

0 commit comments

Comments
 (0)