# File lib/asciidoctor/substituters.rb, line 722
  def sub_post_replacements(text)
    if @document.attr? 'hardbreaks'
      lines = text.lines.entries
      return text if lines.size == 1
      last = lines.pop
      "#{lines.map {|line| Inline.new(self, :break, line.rstrip.chomp(LINE_BREAK), :type => :line).render } * "\n"}\n#{last}"
    else
      text.gsub(REGEXP[:line_break]) { Inline.new(self, :break, $1, :type => :line).render }
    end
  end