class RDoc::Markup::ToJoinedParagraph

def accept_paragraph paragraph

def accept_paragraph paragraph
  parts = []
  string = false
  paragraph.parts.each do |part|
    if String === part then
      if string then
        string << part
      else
        parts << part
        string = part
      end
    else
      parts << part
      string = false
    end
  end
  parts = parts.map do |part|
    if String === part then
      part.rstrip
    else
      part
    end
  end
  # TODO use Enumerable#chunk when Ruby 1.8 support is dropped
  #parts = paragraph.parts.chunk do |part|
  #  String === part
  #end.map do |string, chunk|
  #  string ? chunk.join.rstrip : chunk
  #end.flatten
  paragraph.parts.replace parts
end

def end_accepting # :nodoc:

:nodoc:
def end_accepting # :nodoc:
end

def initialize # :nodoc:

:nodoc:
def initialize # :nodoc:
  super nil
end

def start_accepting # :nodoc:

:nodoc:
def start_accepting # :nodoc:
end