# Re: Carriage Return added during return of large string from

**URL:** <https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67581>\
**Category:** Ruby\
**Created:** [February 14, 2006, 1:48am UTC](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67581 "2006-02-14T01:48:31Z")\
**Posts on this page:** 2\
**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 14, 2006, 1:48am UTC](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67581/1 "2006-02-14T01:48:31Z")

</div>

I haven’t heard anything back on this. Is my email getting through to  
the  
ruby-talk group ? Does anybody sense what I’m doing here? Sorry if  
this  
should be obvious, but it’s not. I haven’t even seen my own postings  
come  
up today, so I wonder what’s going on.

Sincerely, Xeno  
xc

---

<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 14, 2006, 10:28am UTC](https://www.ruby-forum.com/t/re-carriage-return-added-during-return-of-large-string-from/67581/2 "2006-02-14T10:28:49Z")

</div>

Xeno C. wrote:

> I haven’t heard anything back on this. Is my email getting through  
> to the ruby-talk group ?

Yes.

> Does anybody sense what I’m doing here?

Probably not.

> Sorry if this should be obvious, but it’s not.

It’s unlikely to be an obvious issue as you said yourself that your code  
is quite complex. Chances are high that the issue is in your code or in  
the way you use some lib code.

> I haven’t even seen  
> my own postings come up today, so I wonder what’s going on.

Line terminators do not show up all of a sudden in a string. It must be  
in your code. Maybe you’re using StringIO and puts:

10:25:34 [~]: ruby -r stringio -e ‘sio=StringIO.new; sio.puts  
“test1”,“test2”; p sio.string’  
“test1\ntest2\n”

Regards

```
robert
```
