lib/crazy_harry.rb in crazy_harry-0.2.0 vs lib/crazy_harry.rb in crazy_harry-0.2.1

- old
+ new

@@ -10,13 +10,14 @@ class << self def fragment(fragment, opts = {}) preserve_brs = opts.delete(:preserve_brs) + preserve_dupes = opts.delete(:preserve_dupes) base = Base.new(fragment: fragment) base.no_blanks! base.convert_br_to_p! unless preserve_brs - base.dedupe! + base.dedupe! unless preserve_dupes base end def to_s @base.to_s