Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-17 11:16:28 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-17 11:16:28 +0300
commit904c382f6abb3c1ee3b3a7c5de0579b1cf2e3bea (patch)
tree9a7ec62a9830d1c1fd8ac187deb25298afac1969 /app
parenteceec9b1c528a4fb05888e0c83e1d58c41f3d047 (diff)
Fix code rendering for snippets
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/_file_highlight.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/_file_highlight.html.haml b/app/views/shared/_file_highlight.html.haml
index 52b48ff7451..fba69dd0f3f 100644
--- a/app/views/shared/_file_highlight.html.haml
+++ b/app/views/shared/_file_highlight.html.haml
@@ -7,4 +7,5 @@
= link_to "#L#{i}", id: "L#{i}", rel: "#L#{i}" do
%i.fa.fa-link
= i
- = highlight(blob.name, blob.data)
+ :preserve
+ #{highlight(blob.name, blob.data)}