Skip to content

Commit a0fbb5e

Browse files
committed
When the result of a Virutal Tags function is empty don't add any prefix or suffix.
1 parent fda75fd commit a0fbb5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cYo.Common/Text/ExtendedStringFormater.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ private static string Format(string format, Func<string, object> getValue, out b
7171
bool success3;
7272
string value3 = Format(GetPart(format, ref i, '$', '>', ['<', '>', '$']), getValue, out success3, true);
7373
string result = ParseFunction(value3, out success3);
74-
stringBuilder.Append(result);
75-
success &= success3;
74+
stringBuilder.Append(result);
75+
success &= success3 && !string.IsNullOrEmpty(result);
7676
break;
7777
}
7878
case '{':

0 commit comments

Comments
 (0)