diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-07-15 08:43:49 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-07-15 08:43:49 +0300 |
commit | c4ea394736f98aebd6b370d75a5b3556206ce09d (patch) | |
tree | 7783d555c727600372094537a7d650fc28a1d46e /lib/banzai | |
parent | c763c7e402599a2789e260ecf61c11c68381aaa5 (diff) |
use %(...) and %[...] in favor of %<...>
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/syntax_highlight_filter.rb | 4 |
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. |