From fdf2a0c3263437c672a4711d67fa191a91489d3d Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 19 Nov 2012 22:20:45 +0100 Subject: [PATCH] indented -> indented_text --- app/helpers/application_helper.rb | 2 +- app/views/user_mailer/new_comment_email.text.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1ed2e30..6bd73c5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -22,7 +22,7 @@ module ApplicationHelper MKD_RENDERER.render(capture(&block)).html_safe end - def indented(string, width) + def indented_text(string, width) string.lines.map { |l| "#{' ' * width}#{l}" }.join('') end diff --git a/app/views/user_mailer/new_comment_email.text.erb b/app/views/user_mailer/new_comment_email.text.erb index 6b28f9d..a59381e 100644 --- a/app/views/user_mailer/new_comment_email.text.erb +++ b/app/views/user_mailer/new_comment_email.text.erb @@ -2,7 +2,7 @@ Howdy! ~<%= @author.nickname %> (<%= profile_url(@author) %>) commented on your asciicast "<%= @asciicast.title %>": -<%= indented @comment.body, 4 %> +<%= indented_text @comment.body, 4 %> --- http://ascii.io/