From 570caf60d2f6e47d891aba01a2a209732ae34675 Mon Sep 17 00:00:00 2001 From: Sharon Rosner Date: Thu, 7 Mar 2024 20:20:05 +0100 Subject: [PATCH] Retouch emit_attributes --- lib/papercraft/tags.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/papercraft/tags.rb b/lib/papercraft/tags.rb index 429e6c7..5f53d28 100644 --- a/lib/papercraft/tags.rb +++ b/lib/papercraft/tags.rb @@ -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) @@ -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