Prompt Shelf

Writing

Fix broken line breaks and mangled pasted text

The text with its paragraphs put back, and nothing else changed.

beginner · updated Nov 13, 2026

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