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
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-07-15 08:43:49 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-15 08:43:49 +0300
commitc4ea394736f98aebd6b370d75a5b3556206ce09d (patch)
tree7783d555c727600372094537a7d650fc28a1d46e /lib/banzai
parentc763c7e402599a2789e260ecf61c11c68381aaa5 (diff)
use %(...) and %[...] in favor of %<...>
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/syntax_highlight_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/syntax_highlight_filter.rb b/lib/banzai/filter/syntax_highlight_filter.rb
index 17f9164bcb7..028edef704b 100644
--- a/lib/banzai/filter/syntax_highlight_filter.rb
+++ b/lib/banzai/filter/syntax_highlight_filter.rb
@@ -25,9 +25,9 @@ module Banzai
begin
highlighted = ''
- highlighted << %<<pre class="#{css_classes}"><code>>
+ highlighted << %(<pre class="#{css_classes}"><code>)
highlighted << formatter.format(lexer.lex(code))
- highlighted << %<</code></pre>>
+ highlighted << %(</code></pre>)
rescue
# Gracefully handle syntax highlighter bugs/errors to ensure
# users can still access an issue/comment/etc.