Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • The answers at stackoverflow.com/questions/9605232/merge-two-lines-into-one may give you some ideas. Commented Apr 18, 2015 at 9:01
  • 1
    @pmg The answear you have mentioned handles paragraphs of fixed number of lines. Commented Apr 18, 2015 at 9:19
  • @AndrzejA.Filip: that's the question ... at least one answer handles paragraphs with unknown number of lines Commented Apr 18, 2015 at 9:25
  • Any reason for the down vote? Commented Apr 18, 2015 at 9:44