Skip to content

Commit 2fe058d

Browse files
committed
Reverting...
1 parent 361f19b commit 2fe058d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cogpowered/FineDiff/Render/Html.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ public function callback( $opcode, $from, $from_offset, $from_len ) {
3333
}
3434

3535
$html = '<del>' . htmlentities( $deletion ) . '</del>';
36+
$html = str_replace( "\r\n", PHP_EOL, $html );
3637
$html = str_replace( PHP_EOL, '</del>' . PHP_EOL . '<del>', $html );
3738

3839
} else /* if ( $opcode === 'i' ) */ {
3940
$html = '<ins>' . htmlentities( substr( $from, $from_offset, $from_len ) ) . '</ins>';
41+
$html = str_replace( ["\r\n"], PHP_EOL, $html );
4042
$html = str_replace( PHP_EOL, '</ins>' . PHP_EOL . '<ins>', $html );
4143
}
4244

0 commit comments

Comments
 (0)