File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -256,8 +256,8 @@ string IFormattable.ToString(string format, IFormatProvider provider)
256
256
}
257
257
258
258
/// <summary>
259
- /// Creates a string representation of this object based on the format string
260
- /// and IFormatProvider passed in.
259
+ /// Creates a string representation of this object based on the format string
260
+ /// and IFormatProvider passed in.
261
261
/// If the provider is null, the CurrentCulture is used.
262
262
/// See the documentation for IFormattable for more information.
263
263
/// </summary>
@@ -294,10 +294,14 @@ internal string ConvertToString(string format, IFormatProvider provider)
294
294
String uriString = safeUnescapedUri . GetComponents ( UriComponents . SerializationInfoString , UriFormat . UriEscaped ) ;
295
295
296
296
var sb = new StringBuilder ( ) ;
297
- sb . Append ( provider , $ "{ Parsers . s_ContextColor } { uriString } { scRgbColor . a : R} ") ;
297
+ sb . Append ( provider , $ "{ Parsers . s_ContextColor } { uriString } { scRgbColor . a : R} { separator } ") ;
298
298
for ( int i = 0 ; i < nativeColorValue . Length ; ++ i )
299
299
{
300
- sb . Append ( provider , $ "{ separator } { nativeColorValue [ i ] : R} ") ;
300
+ sb . Append ( provider , $ "{ nativeColorValue [ i ] : R} ") ;
301
+ if ( i < nativeColorValue . GetLength ( 0 ) - 1 )
302
+ {
303
+ sb . Append ( provider , $ "{ separator } ") ;
304
+ }
301
305
}
302
306
return sb . ToString ( ) ;
303
307
}
You can’t perform that action at this time.
0 commit comments