dotnet / dotnet/ResXResourceManager

Wrong handling of deleting strings with comment

Open
#571 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.5k
Forks
251
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Delete the German string for "Yes" with the ResX Manager.

Works well for entries without a comment. The ResX Manager deletes the `` node:

```xml

Ja

```

But when the German stings has a comment the string is set to an empty string:

```xml

Ja
My sample comment.

```

deleting of "Ja" results in:

```xml


My sample comment.

```

In this case the fallback mechanism of the resource manager does not work, because the string is an empty string but it should be `null`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.