Permalink
Browse files

Fixing attributes

  • Loading branch information...
1 parent 2d4cf97 commit 091352f4bd037de3789f1661e2831763b1df7a3f @zbelzer committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tattoo/ink.rb
View
@@ -32,8 +32,8 @@ def prefix_regexp
end
def link_tag_for(tag)
- attributes = @attributes.map {|k, v| " #{k}=\"#{v}\""}
- %{<a href="#{url_for(tag)}"#{attributes}>#{@prefix}#{tag}</a>}
+ attributes = @attributes.map {|k, v| "#{k}=\"#{v}\""}.join(' ')
+ %{<a href="#{url_for(tag)}" #{attributes}>#{@prefix}#{tag}</a>}
end
def url_for(tag)

0 comments on commit 091352f

Please sign in to comment.