From: Xeno Campanoli Date: 2006-02-14T05:47:32+09:00 Subject: Carriage Return added during return of large string from class method Addendum: Here is the immediate code around my problem: def getTestHeadMarkup() stdCallbacks = getFile(StdCallbacks,"No #{StdCallbacks} File found.") stdMassGlobs = getFile(StdMassGlobs,"No #{StdMassGlobs} File found.") stdMassGlobs = massageGlobals(stdMassGlobs) testMethods = getFile(TestMethods,"No #{TestMethods} File found.") #fdoo = File.open("/tmp/dumpy002.lst","w") #fdoo.print testMethods #fdoo.close markup = "\n\n" + "#{@testType} Items Under Test: #{@setStr}\n" #fdoo = File.open("/tmp/dumpy003.lst","w") #fdoo.print testMethods #fdoo.close return markup end def putTestHeadMarkup() print "\n" print "\n" print "\n" markup = getTestHeadMarkup() #fdoo = File.open("/tmp/dumpy004.lst","w") #fdoo.print markup #fdoo.close print markup #fdoo = File.open("/tmp/dumpy001.lst","w") #fdoo.print markup #fdoo.close print "\n" end ------- dumpy003.lst does not have the carriage returns. dumpy004.lst does, but the carriage returns only occur in dumpy004 for the content originally in the testMethods variable (and corresponding file). x xc