Skip to content

Commit

Permalink
Add wrapping to long diff lines to fix go-gitea#1827
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwwit authored and lafriks committed Oct 26, 2017
1 parent ddb7f59 commit a3cf250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/diff/section_unified.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</td>
{{end}}
<td class="lines-code">
<pre><code class="{{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.GetComputedInlineDiffFor $line}}</code></pre>
<pre><code class="wrap {{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.GetComputedInlineDiffFor $line}}</code></pre>
</td>
</tr>
{{end}}
Expand Down

0 comments on commit a3cf250

Please sign in to comment.