indented -> indented_text

openid
Marcin Kulik 12 years ago
parent c94b6ff2d7
commit fdf2a0c326

@ -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

@ -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/

Loading…
Cancel
Save