From f1cc45e56a4fc6e80bb4be4434dbf49d41adfd83 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Wed, 9 May 2012 13:40:34 +0530 Subject: fix a couple of formatting issues [ci skip] --- actionpack/lib/action_view/helpers/text_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index fffc37ce9e..698f4434ba 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -90,7 +90,7 @@ module ActionView # Highlights one or more +phrases+ everywhere in +text+ by inserting it into # a :highlighter string. The highlighter can be specialized by passing :highlighter - # as a single-quoted string with \1 where the phrase is to be inserted (defaults to + # as a single-quoted string with \1 where the phrase is to be inserted (defaults to # '\1') # # ==== Examples @@ -108,7 +108,9 @@ module ActionView # # You can still use highlight with the old API that accepts the # +highlighter+ as its optional third parameter: - # highlight('You searched for: rails', 'rails', '\1') # => You searched for: rails + # + # highlight('You searched for: rails', 'rails', '\1') + # # => You searched for: rails def highlight(text, phrases, *args) options = args.extract_options! unless args.empty? -- cgit v1.2.3