Skip to content

Commit f5da126

Browse files
committed
Add ability not to expand tabs
1 parent a929467 commit f5da126

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Diff/Renderer/Html/Array.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ private function getChangeExtent($fromLine, $toLine)
223223
*/
224224
protected function formatLines($lines)
225225
{
226-
$lines = array_map(array($this, 'ExpandTabs'), $lines);
226+
if ($this->options['tabSize'] !== false) {
227+
$lines = array_map(array($this, 'ExpandTabs'), $lines);
228+
}
227229
$lines = array_map(array($this, 'HtmlSafe'), $lines);
228230
foreach($lines as &$line) {
229231
$line = preg_replace_callback('# ( +)|^ #', array($this, 'fixSpaces'), $line);

0 commit comments

Comments
 (0)