diff2html/src/templates/line-by-line-file-diff.mustache
Lordfirespeed 9790e447c6
Revert to original overflow behaviour by default; add overflow: 'scroll' as an option
Fixed issues with line-by-line rendering and HTML escaping
2023-03-15 04:23:16 +00:00

22 lines
725 B
Text

<div id="{{fileHtmlId}}" class="d2h-file-wrapper" data-lang="{{file.language}}">
<div class="d2h-file-header">
{{{filePath}}}
</div>
<div class="d2h-file-diff {{overflowClass}}">
<div class="d2h-code-wrapper">
<table class="d2h-diff-table">
<thead hidden>
<tr>
<th scope="col">Original file line number</th>
<th scope="col">Diff line number</th>
<th scope="col">Content</th>
</tr>
</thead>
<tbody class="d2h-diff-tbody">
{{{diffs}}}
</tbody>
</table>
</div>
</div>
</div>