summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-17 00:16:28 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 15:53:59 -0800
commit4914109cb8235b66e965a58776c8dcfcc2f309a5 (patch)
tree789b209d515dec0c7f4ddb100ee91edfdcffdf46
parenta9d9f940ce173e1c749dab92fc9d716792cd403d (diff)
downloadgitlab-ce-4914109cb8235b66e965a58776c8dcfcc2f309a5.tar.gz
Fix code rendering for snippets
-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)}