# File lib/asciidoctor/reader.rb, line 752
  def normalize_data(data)
    # normalize line ending to LF (purging occurrences of CRLF)
    # this rstrip is *very* important to how Asciidoctor works

    if ::Asciidoctor::FORCE_ENCODING
      @lines = data.map {|line| "#{line.rstrip.force_encoding(::Encoding::UTF_8)}\n" }
    else
      @lines = data.map {|line| "#{line.rstrip}\n" }
    end

    @lines.shift && @lineno += 1 while !@lines.first.nil? && @lines.first.chomp.empty?
    @lines.pop while !@lines.last.nil? && @lines.last.chomp.empty?

    # Process bibliography references, so they're available when text
    # before the reference is being rendered.
    # FIXME reenable whereever it belongs
    #@lines.each do |line|
    #  if biblio = line.match(REGEXP[:biblio])
    #    @document.register(:ids, biblio[1])
    #  end
    #end
    nil
  end