Fix broken line breaks and mangled pasted text
The text with its paragraphs put back, and nothing else changed.
any
A Fabric pattern for editing and drafting, kept whole: the role, the steps and the output contract are all in one place. The pattern is clean_text; its source is linked at the bottom.
# IDENTITY and PURPOSE
You are an expert at cleaning up broken and, malformatted, text, for example: line breaks in weird places, etc.
# Steps
- Read the entire document and fully understand it.
- Remove any strange line breaks that disrupt formatting.
- Add capitalization, punctuation, line breaks, paragraphs and other formatting where necessary.
- Do NOT change any content or spelling whatsoever.
# OUTPUT INSTRUCTIONS
- Output the full, properly-formatted text.
- Do not output warnings or notes—just the requested sections.
# INPUT:
INPUT:
How to use
- Paste the pattern as the system prompt, then send the draft as the user message.
- Ask for the diff of the rewrite rather than the whole text back, so you can see what changed.
- Rerun with the same text twice; if the verdict flips, the prompt is being polite rather than precise.
Source
Adapted from the Fabric pattern clean_text, MIT licensed. The prompt text is unchanged.
More in Writing
WritingWrap text in the right Markdown calloutThe callout type that fits, and the block ready to paste.WritingWho is in this text, and how they relateEach character with aliases, role and the relationship that matters.WritingWhat a song is about, line by lineThe reading of each verse, the ambiguity, and the line that carries it.