Skip to content

Commit

Permalink
When the result of a Virutal Tags function is empty don't add any pre…
Browse files Browse the repository at this point in the history
…fix or suffix.
  • Loading branch information
maforget committed Dec 6, 2024
1 parent fda75fd commit a0fbb5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cYo.Common/Text/ExtendedStringFormater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ private static string Format(string format, Func<string, object> getValue, out b
bool success3;
string value3 = Format(GetPart(format, ref i, '$', '>', ['<', '>', '$']), getValue, out success3, true);
string result = ParseFunction(value3, out success3);
stringBuilder.Append(result);
success &= success3;
stringBuilder.Append(result);
success &= success3 && !string.IsNullOrEmpty(result);
break;
}
case '{':
Expand Down

0 comments on commit a0fbb5e

Please sign in to comment.