WeblateOrg / WeblateOrg/weblate

Improve the diff highlight in some cases

Open
#14,113 2 comments 0 reactions 0 assignees View on GitHub
Area: UX enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

Diff highlighting needs improvement in some cases when only punctuation or symbols are involved (I guess).

See the example in https://hosted.weblate.org/changes/browse/osmand/ios/zh_Hans/85935031/ (https://hosted.weblate.org/translate/osmand/ios/zh_Hans/?checksum=551b111178c6a543#history)
The slash `/` should not be involved in the diff highlight for either event in the screenshot. The current diff highlight doesn’t really show that either is a `2 characters edited` event.

### Describe the solution you would like

Highlight only the spaces before and after the slash.

### Describe alternatives you have considered

_No response_

### Screenshots

![Image](https://github.com/user-attachments/assets/640ae62f-845c-4407-8a74-39020d4bb4f5)

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.