Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Nov 19, 2023
1 parent 2659ec6 commit 31a7216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OneMore/Ribbon/AddinRibbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,9 @@ private string ReadString(string resId)
{
try
{
return Resx.ResourceManager.GetString(resId, AddIn.Culture);
var s = Resx.ResourceManager.GetString(resId, AddIn.Culture);
s ??= $"*{resId}*";
return s.Trim();
}
catch (Exception exc)
{
Expand Down

0 comments on commit 31a7216

Please sign in to comment.