anthropics / anthropics/claude-code

[BUG] Chat rendering in VS Code does not distinguish no-break spaces (U+00A0, U+202F) from regular spaces

Open
#94,539 0 comments 0 reactions 0 assignees View on GitHub
area:ui bug platform:vscode platform:wsl
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code

### What's Wrong?

When I request Claude to generate text with Unicode no-break spaces (either the normal no-break space (U+00A0) or the narrow no-break space (U+202F, used in French typography before `; : ? ! » «`)), the chat UI renders them with a regular space (U+0020), both visually and through a copy-paste.

This makes rendering of French text pretty bad, as lines will break before these double-punctuation marks, e.g. :

- in Claude Code app, version 1.52386.6 (612f3f) 2026-09-13T00:45:40.000Z

Image

- in VS Code extension, version 2.1.272 :

Image

Said otherwise, no-break spaces render identically to a plain space, with the rendering breaking line just before the punctuation mark, which is harder to read (and a bit ugly).

### What Should Happen?

The no-break space should prevent line-wrapping between the word and the following punctuation.

### Error Messages/Logs

```shell
n/a
```

### Steps to Reproduce

1. Ask Claude to output a sentence using French typography rules, e.g.:

`Le module a été mis à jour ; vérifier si cela répond à votre besoin : sinon, précisez ce qui manque !`
with narrow no-break spaces (U+202F) before `;` and `!`, and a normal no-break space (U+00A0) before `:`.

### Claude Model

Sonnet (default)

### Is this a regression?

I don't know

### Last Working Version

_No response_

### Claude Code Version

1.52386.6

### Platform

Anthropic API

### Operating System

Windows

### Terminal/Shell

WSL (Windows Subsystem for Linux)

### Additional Information

I do not use Claude in the terminal, only through Chat interfaces; so not sure how the Terminal/Shell question is relevant.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in the VS Code extension's Chat interface using the French sentence from the report, including U+00A0 and U+202F. Inspect the chat rendering entry point and verify both characters remain distinct when displayed and copied, with no line wrap between the word and punctuation.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.