Skip to content

Commit

Permalink
Cleaned up generated PCK formatting slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
codewitch-honey-crisis committed Nov 21, 2019
1 parent 1da3ddb commit ef337f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cfg/CfgDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ public override string ToString()
{
if (0 < attrSet.Value.Count)
{
sb.Append(string.Concat(attrSet.Key, ":"));
sb.Append(string.Concat(attrSet.Key, ": "));
var delim = "";
for (int jc = attrSet.Value.Count, j = 0; j < jc; ++j)
{
Expand All @@ -671,6 +671,7 @@ public override string ToString()
sb.AppendLine();
}
}
sb.AppendLine();
for (int ic = Rules.Count, i = 0; i < ic; ++i)
sb.AppendLine(Rules[i].ToString());
return sb.ToString();
Expand Down
3 changes: 2 additions & 1 deletion pckw/XbnfToPckTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void Transform(XbnfDocument document, TextWriter writer)
syms.Add(p.Name);
if (0 < p.Attributes.Count)
{
writer.Write(string.Concat(p.Name, ":"));
writer.Write(string.Concat(p.Name, ": "));
var delim = "";
for (int jc = p.Attributes.Count, j = 0; j < jc; ++j)
{
Expand All @@ -30,6 +30,7 @@ public static void Transform(XbnfDocument document, TextWriter writer)
writer.WriteLine();
}
}
writer.WriteLine();
// use a list dictionary to keep these in order
var tmap = new ListDictionary<XbnfExpression, string>();
var attrSets = new Dictionary<string, XbnfAttributeList>();
Expand Down

0 comments on commit ef337f5

Please sign in to comment.