Project

General

Profile

Bug #516 » sample.rb

再現スクリプト - sakuro (Sakuro OZAWA), 08/29/2008 11:49 PM

 
require 'rexml/document'
require 'rexml/formatters/pretty'

fmt = REXML::Formatters::Pretty.new
doc1 = REXML::Document.new(%Q|<?xml version="1.0"?><x>#{'A' * 78}</x>|)
doc2 = REXML::Document.new(%Q|<?xml version="1.0"?><x>#{'A' * 79}</x>|)

puts RUBY_DESCRIPTION
fmt.write(doc1, $stdout)
puts
fmt.write(doc2, $stdout)
    (1-1/1)