# Tagz-5.0.0

**URL:** <https://www.ruby-forum.com/t/tagz-5-0-0/164069>\
**Category:** Ruby\
**Created:** [March 27, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/tagz-5-0-0/164069 "2009-03-27T14:24:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_SSTownley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Post date:** [March 27, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/tagz-5-0-0/164069/1 "2009-03-27T14:24:56Z")

</div>

Hi Ara,

Here’s a fix for the empty tag problem. With this fix, I now have a  
usable solution. It would still be nice to support combining multiple  
hash arguments automatically, but that’s not a showstopper.

Thanks again for all your hard work.

Cheers,

ast

excalibur$ diff -u /var/lib/gems/1.8/gems/tagz-5.0.0/lib/tagz.rb  
/tmp/tagz.rb  
— /var/lib/gems/1.8/gems/tagz-5.0.0/lib/tagz.rb 2009-03-24  
11:58:05.000000000 +0000  
+++ /tmp/tagz.rb 2009-03-27 13:21:47.000000000 +0000  
@@ -37,6 +37,7 @@  
end

```
   tagz.concat "<#{ name }#{ attributes }>"

```

- 

```
 startsz = tagz.size

 if content.empty?
   if block

```

@@ -59,6 +60,7 @@  
tagz.concat “\</#{ name }\>”  
end

- 

```
 tagz[-1] = "/>" if tagz.size == startsz
 tagz

```

end
