# Carriage Return added during return of large string from cla

**URL:** <https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/67384>\
**Category:** Ruby\
**Created:** [February 13, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/67384 "2006-02-13T21:47:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [February 13, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/carriage-return-added-during-return-of-large-string-from-cla/67384/1 "2006-02-13T21:47:44Z")

</div>

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<script language='javascript'>\n" +
  stdMassGlobs +
  stdCallbacks +
  testMethods +
  "\n</script>\n" +
  "<title>#{@testType} Items Under Test: #{@setStr}</title>\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
