fix: Allow selection of empty lines

This commit is contained in:
Rodrigo Fernandes 2020-02-09 17:02:44 +00:00
parent 4a3ed66135
commit 7be6ef0f4d
No known key found for this signature in database
GPG key ID: 67157D2E3D4258B4
2 changed files with 210 additions and 206 deletions

View file

@ -821,6 +821,7 @@ describe('Diff2Html', () => {
<td class=\\"d2h-cntx\\"> <td class=\\"d2h-cntx\\">
<div class=\\"d2h-code-line d2h-cntx\\"> <div class=\\"d2h-code-line d2h-cntx\\">
<span class=\\"d2h-code-line-prefix\\">&nbsp;</span> <span class=\\"d2h-code-line-prefix\\">&nbsp;</span>
<span class=\\"d2h-code-line-ctn\\"><br></span>
</div> </div>
</td> </td>
</tr> </tr>

View file

@ -10,6 +10,9 @@
{{#content}} {{#content}}
<span class="d2h-code-line-ctn">{{{content}}}</span> <span class="d2h-code-line-ctn">{{{content}}}</span>
{{/content}} {{/content}}
{{^content}}
<span class="d2h-code-line-ctn"><br></span>
{{/content}}
</div> </div>
</td> </td>
</tr> </tr>