adamh-hpricot 0.6.170 → 0.6.171

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/hpricot/tag.rb +1 -1
  2. metadata +1 -1
data/lib/hpricot/tag.rb CHANGED
@@ -71,7 +71,7 @@ module Hpricot
71
71
  end
72
72
  if etag
73
73
  etag.output(out, opts)
74
- elsif !opts[:preserve]
74
+ elsif !opts[:preserve] && !empty?
75
75
  out <<
76
76
  if_output(opts) do
77
77
  "</#{name}>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adamh-hpricot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.170
4
+ version: 0.6.171
5
5
  platform: ruby
6
6
  authors:
7
7
  - why the lucky stiff