summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-10-27 07:30:54 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-10-27 12:30:54 +0800
commit762f1d7237de5727815ebda9593f7f9a20a5a077 (patch)
treee66519b98c62320ac12cac772165700804391d5c /templates
parentddb7f59ef414ffad8dc2485055c246aaea0507d7 (diff)
downloadgitea-762f1d7237de5727815ebda9593f7f9a20a5a077.tar.gz
gitea-762f1d7237de5727815ebda9593f7f9a20a5a077.zip
Add wrapping to long diff lines (#2789)
* Add wrapping to long diff lines to fix #1827 * Fix css class and make changes to source (less) files * Fix wrong space indentation * Fix indentation inconsistencies and remove very old WebKit workaround
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/section_unified.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl
index ee66b6dc9a..996c0c0137 100644
--- a/templates/repo/diff/section_unified.tmpl
+++ b/templates/repo/diff/section_unified.tmpl
@@ -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}}