# File lib/asciidoctor/table.rb, line 434
  def buffer_has_unclosed_quotes? append = nil
    if (record = append ? (buffer + append).strip : buffer.strip).start_with? '"'
      if ((trailing_quote = record.end_with? '"') && (record.end_with? '""')) || (record.start_with? '""')
        ((record = record.gsub '""', '').start_with? '"') && !(record.end_with? '"')
      else
        !trailing_quote
      end
    else
      false
    end
  end