Remove line breaks from text

Put a broken text back on one line, or join a list with a comma or another separator.