We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca67b33 commit 3fdab38Copy full SHA for 3fdab38
Util/Rtf/RtfBuilder.cs
@@ -293,20 +293,20 @@ private static string EscapeString(string value)
293
{
294
var sb = new StringBuilder();
295
296
- for (int i = 0; i < value.Length; i++)
+ foreach (var c in value)
297
298
- if (value[i] <= 255)
+ if (c <= 255)
299
300
- sb.Append(value[i]);
+ sb.Append(c);
301
}
302
- else if (value[i] == '\t')
+ else if (c == '\t')
303
304
sb.Append(@"\tab");
305
306
else
307
308
sb.Append(@"\u");
309
- sb.Append((int)value[i]);
+ sb.Append((int)c);
310
sb.Append("?");
311
312
0 commit comments