[Olena-patches] last-svn-commit-61-g765dcd0 Improve text line merging algorithm.