Skip to content

Commit 4d306bb

Browse files
update
1 parent 8234648 commit 4d306bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Diff/Renderer/Html/Inline.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function render()
177177
$html .= '<td class="row_header">'.$fromLine.'</th>';
178178
$html .= '<td class="row_header">&nbsp;</th>';
179179
}
180-
if (!$singleLine || ($singleLine && str_replace([" ", " "], "", $line))) {
180+
if (!$singleLine || ($singleLine && str_replace([" ", " ", "<del>", "</del>", "<ins>", "</ins>"], "", $line))) {
181181
$html .= '<td class="row_content"><span>'.$line.'</span></td>';
182182
}
183183
$html .= '</tr>';
@@ -197,7 +197,7 @@ public function render()
197197
$html .= '<td class="row_header">&nbsp;</th>';
198198
$html .= '<td class="row_header">'.$toLine.'</th>';
199199
}
200-
if (!$singleLine || ($singleLine && str_replace([" ", " "], "", $line))) {
200+
if (!$singleLine || ($singleLine && str_replace([" ", " ", "<del>", "</del>", "<ins>", "</ins>"], "", $line))) {
201201
$html .= '<td class="row_content"><span>'.$line.'</span></td>';
202202
}
203203
$html .= '</tr>';

0 commit comments

Comments
 (0)