From c4ea394736f98aebd6b370d75a5b3556206ce09d Mon Sep 17 00:00:00 2001 From: "http://jneen.net/" Date: Thu, 14 Jul 2016 22:43:49 -0700 Subject: use %(...) and %[...] in favor of %<...> --- lib/banzai/filter/syntax_highlight_filter.rb | 4 ++-- lib/rouge/formatters/html_gitlab.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 << %<
>
+          highlighted << %(
)
           highlighted << formatter.format(lexer.lex(code))
-          highlighted << %<
> + highlighted << %(
) rescue # Gracefully handle syntax highlighter bugs/errors to ensure # users can still access an issue/comment/etc. diff --git a/lib/rouge/formatters/html_gitlab.rb b/lib/rouge/formatters/html_gitlab.rb index b76cf14a536..f818dc78d34 100644 --- a/lib/rouge/formatters/html_gitlab.rb +++ b/lib/rouge/formatters/html_gitlab.rb @@ -17,9 +17,9 @@ module Rouge yield "\n" unless is_first is_first = false - yield %<> + yield %() line.each { |token, value| yield span(token, value) } - yield %<> + yield %() @line_number += 1 end -- cgit v1.2.1