Kill trailing whitespace in ruby files
This commit is contained in:
@@ -5,18 +5,18 @@ module PostsHelper
|
||||
if post.has_large?
|
||||
links << link_to("L", post.large_file_url, :id => "large-file-link")
|
||||
end
|
||||
|
||||
|
||||
if post.has_large?
|
||||
links << link_to("O", post.file_url, :id => "original-file-link")
|
||||
end
|
||||
|
||||
|
||||
if links.any?
|
||||
content_tag("span", raw("Resize: " + links.join(" ")))
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def post_source_tag(post)
|
||||
if post.source =~ /^http/
|
||||
text = truncate(post.normalized_source.sub(/^https?:\/\//, ""))
|
||||
|
||||
Reference in New Issue
Block a user