Remove Line Breaks
remove_line_breaksRemove line breaks from text that was hard-wrapped, and keep the paragraphs. A HelpySelf tool (helpyself.com).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What to keep. "paragraphs" removes the breaks inside a paragraph and keeps the blank line between paragraphs, which is almost always what is wanted; "all" collapses everything to a single line. | paragraphs |
| text | Yes | The hard-wrapped text to reflow — copied out of a P D F, an email or a terminal. | |
| joinWith | No | What replaces a removed break. "nothing" is for scripts written without spaces between words, where a space would be wrong. | space |
| keepLists | No | Leave a line that starts a list item on its own line. A hard-wrapped document is full of them, and joining a bulleted list into a sentence loses the only structure it had. | |
| mendHyphens | No | Rejoin a word the line break split: "inter-" then "national" becomes "international". Only applied where the next line starts lower-case, so a real hyphen in "well-Known" is left alone. |