The algorithm to use in such a case is based on average line length. First calculate the average line length and when there are lines significantly shorter than that, dont remove the breaks. That will take care of most of the breaks correctly
Notice to all: I can not
provide assistance with DRM removal, for legal reasons, so please do not contact me about it.