elementary / elementary/code

Invisibles are copied with text

Ouverte
#1,057 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Priority: Low
Langage dominant
Vala
Étoiles
521
Forks
118
Merge moyen
1 j 8 h
PR mergées (30 j)
14

Description

## What Happened

This is a minor issue, but when you copy and paste text in Code, the invisible markers (spaces, tabs, newlines) come with it. The pasted text displays invisibles, even though it's not selected.

If I select and deselect the pasted text, the invisibles disappear as expected.

## Expected Behavior

Invisibles should not be pasted with the rest of the text, but instead should only be shown when selected like all other text

## Steps to Reproduce

1. Enter some text containing spaces (like `Hello World`)
2. Select that text. You'll see an invisible marker in the space between words when it's selected.
2. Copy that text
3. Paste it somewhere else in Code. You will see the invisible marker in the pasted text, even though it's not selected

### Logs

## Platform Information

Odin daily

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez les étapes de copier-coller dans Code avec les marqueurs invisibles activés, puis suivez le comportement de copie et de collage de l’éditeur pour trouver où l’état d’affichage propre à la sélection est conservé. C’est terminé lorsque le texte collé affiche les caractères invisibles uniquement lorsqu’il est sélectionné, conformément au comportement existant du texte original.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
desktop
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.