# Scrubyt and line breaks

**URL:** <https://www.ruby-forum.com/t/scrubyt-and-line-breaks/173642>\
**Category:** Ruby\
**Created:** [August 12, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/scrubyt-and-line-breaks/173642 "2009-08-12T16:18:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesardiaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/dfb087/32.png) [@cesardiaz](https://www.ruby-forum.com/u/cesardiaz)\
**Post date:** [August 12, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/scrubyt-and-line-breaks/173642/1 "2009-08-12T16:18:22Z")

</div>

Hi,

I’m trying to get a portion of text from a web page using Scrubyt. The  
portion is like this:

I don't feel like I'm at home  
In the morning all alone  
Trying hard to do the things I know I should  
When the night time closes in  
And the loneliness begins  
I believe you'd want to be here if you could  
  

I haven’t got any problem getting the content of that div. The problem  
is that after getting it, it seems that Scrubyt deletes the line breaks  
(  
), so I get that content all in the same line. I have tried with  
some other similar pages, and what I get was the same text but replacing  
the   
 tags with \n.

Anyone knows the reason of this strange behaviour? Any idea?

Thanks a lot.
