Remove unnecessary newline from output.

Make required trait strings a hyperlink.
This commit is contained in:
Taryn Hill
2015-03-05 08:18:50 -06:00
parent 762c0e12a2
commit a5bbb60db9

View File

@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (reqCount > 0)
{
if (t.HasAttribute<DescAttribute>())
doc.AppendLine("\n");
doc.AppendLine();
doc.Append("Requires trait{0}: ".F(reqCount > 1 ? "s" : ""));
@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
var n = require.Name;
var name = n.EndsWith("Info") ? n.Remove(n.Length - 4, 4) : n;
doc.Append("`{0}`{1}".F(name, i + 1 == reqCount ? ".\n" : ", "));
doc.Append("[`{0}`](#{1}){2}".F(name, name.ToLowerInvariant(), i + 1 == reqCount ? ".\n" : ", "));
i++;
}
}