Closed redonkulus closed 2 years ago
Name of the lexer diff
Code sample
<div> - <span></span> + <p></p> </div>
output
<code id="parse_code"><span class="gd"><div> - <span></span> </span><span class="gi">+ <p></p> </span><span class="gd"></div></span></code>
Sample: http://rouge.jneen.net/v3.29.0/diff/PGRpdj4KLSA8c3Bhbj48L3NwYW4-CisgPHA-PC9wPgo8L2Rpdj4
Additional context
The first line in this diff gets included in the "substracted" part of the diff (i.e, wrapped in <span class="gd">), when it should not be included. This causes the diff to look like more is being removed than necessary.
<span class="gd">
Name of the lexer diff
Code sample
output
Sample: http://rouge.jneen.net/v3.29.0/diff/PGRpdj4KLSA8c3Bhbj48L3NwYW4-CisgPHA-PC9wPgo8L2Rpdj4
Additional context
The first line in this diff gets included in the "substracted" part of the diff (i.e, wrapped in
<span class="gd">
), when it should not be included. This causes the diff to look like more is being removed than necessary.