We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4af7b5c + d1fc6ff commit 4c7bd74Copy full SHA for 4c7bd74
lib/Diff/Renderer/Html/Array.php
@@ -174,7 +174,9 @@ private function getChangeExtent($fromLine, $toLine)
174
*/
175
private function formatLines($lines)
176
{
177
- $lines = array_map(array($this, 'ExpandTabs'), $lines);
+ if ($this->options['tabSize'] !== false) {
178
+ $lines = array_map(array($this, 'ExpandTabs'), $lines);
179
+ }
180
$lines = array_map(array($this, 'HtmlSafe'), $lines);
181
foreach($lines as &$line) {
182
$line = preg_replace_callback('# ( +)|^ #', __CLASS__."::fixSpaces", $line);
@@ -222,4 +224,4 @@ private function htmlSafe($string)
222
224
223
225
return htmlspecialchars($string, ENT_NOQUOTES, 'UTF-8');
226
}
-}
227
+}
0 commit comments