LocUtil: more enum gen fix

This commit is contained in:
Nick Vella 2019-08-05 16:40:15 +10:00
parent fbe23bbaa5
commit 620b3e6ac0
2 changed files with 1483 additions and 1483 deletions

View File

@ -389,7 +389,7 @@ namespace OpenLiveWriter.Localization
index++;
}
sw.Write(string.Format(CultureInfo.InvariantCulture, TEMPLATE, enumName, StringHelper.Join(pairs.ToArray(), ",\r\n\t\t")));
sw.Write(string.Format(CultureInfo.InvariantCulture, TEMPLATE, enumName, StringHelper.Join(pairs.ToArray(), ",\r\n ")));
}
else if (values == null)
{
@ -398,10 +398,10 @@ namespace OpenLiveWriter.Localization
foreach (string command in commandList.ToArray())
{
string description = ((Values)descriptions[command]).Val as string;
description = description.Replace("\n", "\n\t\t/// ");
description = description.Replace("\n", "\n /// ");
descs.Add(string.Format(CultureInfo.InvariantCulture, DESC_TEMPLATE, description, command));
}
sw.Write(string.Format(CultureInfo.InvariantCulture, TEMPLATE, enumName, StringHelper.Join(descs.ToArray(), ",\r\n\t\t")));
sw.Write(string.Format(CultureInfo.InvariantCulture, TEMPLATE, enumName, StringHelper.Join(descs.ToArray(), ",\r\n ")));
}
else
{

File diff suppressed because it is too large Load Diff