Skip to content

Commit

Permalink
Retouch emit_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
noteflakes committed Mar 7, 2024
1 parent 70846af commit 570caf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/papercraft/tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def att_repr(att)
# @param attributes [Hash] tag attributes
# @return [void]
def emit_attributes(attributes)
attributes.each { |k, v|
attributes.each do |k, v|
case v
when true
@buffer << S_SPACE << att_repr(k)
Expand All @@ -400,7 +400,8 @@ def emit_attributes(attributes)
@buffer << S_SPACE << att_repr(k) <<
S_EQUAL_QUOTE << escape_text(v) << S_QUOTE
end
}
end
end

end
end

0 comments on commit 570caf6

Please sign in to comment.