lib/opener/opinion_detector_basic/base_processor.rb
##
# Format the output document properly.
#
# TODO: this should be handled by Oga in a nice way.
#
# @return [String]
#
Format the output document properly.
TODO: this should be handled by Oga in a nice way.
Format the output document properly . TODO : this should be handled by Oga in a nice way .
def pretty_print document
        doc = REXML::Document.new document.to_xml
        doc.context[:attribute_quote] = :quote
        out = ""
        formatter = REXML::Formatters::Pretty.new
        formatter.compact = true
        formatter.write doc, out
        out.strip
      end
def pretty_print document doc = REXML :: Document . new document . to_xml doc . context [ :attribute_quote ] = :quote out = "" formatter = REXML :: Formatters :: Pretty . new formatter . compact = true formatter . write doc , out out . strip end
Format the output document properly.
Format the output document properly .
None
String
document
<not_specific>