CLI output padding makes non-code text impossible to copy-paste
Resolved 💬 3 comments Opened Mar 7, 2026 by ahb-sjsu Closed Mar 10, 2026
Problem
All text output in the Claude Code CLI is padded with leading spaces on every line. This makes it impossible to copy-paste plain text (e.g., a paragraph to paste into LinkedIn, an email draft, etc.) directly from the terminal without manually stripping whitespace.
Code blocks also get 2 spaces prepended per line, so there's no workaround within the CLI itself.
Expected behavior
There should be a way to output plain text without padding, or at minimum code blocks should render without leading whitespace so users can copy-paste clean text.
Current workaround
Write the text to a file and open it in Notepad — which defeats the purpose of an interactive CLI.
Environment
- Platform: Windows 10
- Shell: bash
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗