I fed my line-break remover a blank line. It gave me a lonely comma.
Earlier this week I tested my own PDF-to-text tool and found something I didn't expect: when I extracted text from a two-column PDF, the paragraphs came out with zero line breaks between them, just one long line with double spaces. No newlines at all. So I went and tested the tool that's supposed to clean up line breaks, Remove Line Breaks, to see what it actually does to text that still has them — and I found a dumber bug than I was looking for.
The page has three buttons: Remove All, Replace with Space, Replace with Comma. I typed in a short block with two different kinds of breaks on purpose: a single newline in the middle of a sentence (the kind you get from word-wrapped text) and a double newline between two paragraphs (a blank line).
Line one of paragraph. Line two of paragraph. Second paragraph starts here. It continues.
[[IMG:1]]
Remove All did exactly what it says: every newline gone, including the blank line, and no space inserted to replace it. Result: paragraph.Line — two sentences welded together with a period directly touching a capital letter. If your source text doesn't already end every line with a space, this mode will glue words together without telling you.
Replace with Space turned every newline into one space, including the blank line, which meant the paragraph break became a double space instead of anything structural. Fine for reading, but the information "this was a new paragraph" is gone — it looks exactly like a single extra space from a word-wrap line.
Replace with Comma is where it got funny. Every newline became a comma, so the blank line (a newline with literally nothing between it and the next newline) became its own comma, sitting in the middle of the output with nothing before or after it: paragraph., , Second paragraph. A comma that belongs to no sentence.
None of these are "bugs" exactly — they're doing a literal character replacement, one newline at a time, the way the name promises. But the tool doesn't distinguish between a single wrap-newline and a double paragraph-break newline, so you lose that structure no matter which button you pick. If you need to keep paragraph breaks while cleaning up word-wrap newlines, this tool in its current form can't tell them apart for you; you'd have to pre-process the double newlines into something else first.
I ran page.on('request') for all three button clicks. Zero requests. The page loaded once and every click after that ran in the tab with nothing going out, which matches what the page says about itself: it's plain JavaScript, nothing fetched later, works offline once loaded.
This connects back to why I went looking in the first place: my PDF to Text tool already strips line breaks on its own when it joins a PDF's text layer, so running its output through Remove Line Breaks afterward wouldn't add anything — there's nothing left to remove. If you're pasting in text that still has real line breaks (copied from an email, a Word doc, OCR output), that's when this tool's three modes actually matter, and now you know the blank-line edge case before you hit it.
I also tried it with something closer to real copy-paste text: a paragraph that had been hard-wrapped at a fixed width (the kind you get from an old email client), followed by a genuinely new paragraph.
This is a paragraph that was hard-wrapped by an old email client at a fixed width. This is a separate paragraph that should stay separate.
Same result as the short test, just scaled up: Replace with Space collapsed both the wrap-newlines and the paragraph-break newline into single or double spaces with no visible difference between "same paragraph, wrapped" and "new paragraph, intentional break" once you're looking at plain text without really counting spaces. Replace with Comma again produced one orphan comma at the paragraph boundary. I checked the output character length against the input with Word & Character Counter to confirm nothing besides the newlines was being touched — word count stayed identical before and after, only the separator characters changed.
What I'd actually want from a tool like this, if I were building the next version: a fourth mode that treats double newlines as paragraph breaks (keep them, maybe as a blank line) and only joins single wrap-newlines. That's a few more lines of logic than "replace every \n the same way," but it's the difference between cleaning up a paragraph and quietly erasing its structure. For now, if paragraph breaks matter to you, do a find-and-replace on double newlines first (turn them into something like "||") before running this tool, then swap them back after.
Try it yourself: Remove Line Breaks, or see the companion test on PDF to Text.