Instead of using “Join Lines” you could do a regular expression replace-all operation:
Find-what box: \R
Replace-with box: make sure this box is EMPTY
Search mode: ☑ Regular expression
☑ Wrap around (maybe…depending upon what you want…)
“Join Lines” works on the active selection; if you want the replace operation to do likewise, then: ☑ In selection
If this posting was useful, don’t post a “thanks”, just upvote ( click the ^ in the ^ 0 v area on the right )