class RDoc::Markup::Document

def empty?

def empty?
  @parts.empty? or (@parts.length == 1 and merged? and @parts.first.empty?)
end