1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-23 05:08:34 +01:00

use toString shorthand

This commit is contained in:
Ellpeck 2020-02-08 18:25:49 +01:00
parent 330ef02054
commit f8f4dfbff4

View file

@ -36,7 +36,7 @@ namespace MLEM.Extensions {
foreach (var word in line.Split(' ')) { foreach (var word in line.Split(' ')) {
if (widthFunc(word) * scale >= width) { if (widthFunc(word) * scale >= width) {
if (curr.Length > 0) { if (curr.Length > 0) {
total.Append(curr.ToString(0, curr.Length)).Append('\n'); total.Append(curr).Append('\n');
curr.Clear(); curr.Clear();
} }
var wordBuilder = new StringBuilder(); var wordBuilder = new StringBuilder();