On Sun, Oct 6, 2013 at 7:26 AM, Dave Hwong <lists / ruby-forum.com> wrote:

> Thanks Harry, your solution is good for me. Your strategy is actually
> convert the text into an array line by line, and then pick up what you
> want to format. I learned much from your example.
>
> Something that I don't understand is why you need add:
> <quote> f.puts if y.size==0 </quote>
> Are you going to print a new line?
>
>

That line is not necessary.
It just puts a space between ENDBLOCK and the beginning of another block if
there is one.
Not important.


Harry