Fix indentions of trait documentation table of contents.
This commit is contained in:
committed by
reaperrr
parent
a4ef199b75
commit
287290bbdf
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
}
|
}
|
||||||
|
|
||||||
var traitName = t.Name.EndsWith("Info") ? t.Name.Substring(0, t.Name.Length - 4) : t.Name;
|
var traitName = t.Name.EndsWith("Info") ? t.Name.Substring(0, t.Name.Length - 4) : t.Name;
|
||||||
toc.AppendLine(" * [{0}](#{1})".F(traitName, traitName.ToLowerInvariant()));
|
toc.AppendLine(" * [{0}](#{1})".F(traitName, traitName.ToLowerInvariant()));
|
||||||
var traitDescLines = t.GetCustomAttributes<DescAttribute>(false).SelectMany(d => d.Lines);
|
var traitDescLines = t.GetCustomAttributes<DescAttribute>(false).SelectMany(d => d.Lines);
|
||||||
doc.AppendLine();
|
doc.AppendLine();
|
||||||
doc.AppendLine("### {0}".F(traitName));
|
doc.AppendLine("### {0}".F(traitName));
|
||||||
|
|||||||
Reference in New Issue
Block a user