URLs wrap with 2-space left indent on continuation lines in terminal renderer

Resolved 💬 3 comments Opened Mar 6, 2026 by dustinkirkland Closed Mar 10, 2026

Description

When Claude outputs a long URL that wraps across terminal lines, the continuation lines have 2 spaces of prepended whitespace. This breaks clickability of the URL in terminal emulators, since the URL is no longer a single unbroken string.

Steps to reproduce

Ask Claude to print a URL longer than the terminal width (e.g. ~1000 characters). Observe that when the URL wraps, the second and subsequent lines start with 2 spaces of indentation.

Expected behavior

URL continuation lines should be flush-left (0 indentation), so the full URL remains a contiguous clickable string in the terminal.

Actual behavior

Continuation lines have 2 spaces prepended, breaking clickability.

Attempted workarounds

Tested multiple markdown elements — plain paragraph, ATX heading (#), and raw HTML block (<p>...</p>) — all produce the same 2-space indent on wrapped lines. The behavior appears to be hardcoded in Claude Code's terminal text renderer, not controllable via markdown formatting.

Environment

  • Claude Code terminal UI
  • Markdown rendered in monospace font using CommonMark spec

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗