[Feature] Get additional notes working

This commit is contained in:
Matt Nadareski
2017-02-02 15:36:35 -08:00
parent 02f5e1bea3
commit 32d014841b

View File

@@ -223,10 +223,12 @@ namespace SabreTools.Helper.Help
string output = ""; string output = "";
// Add the pre-space first // Add the pre-space first
string prespace = "";
for (int i = 0; i < pre; i++) for (int i = 0; i < pre; i++)
{ {
output += " "; prespace += " ";
} }
output += prespace;
// Now add all flags // Now add all flags
output += String.Join(", ", _flags); output += String.Join(", ", _flags);
@@ -277,10 +279,12 @@ namespace SabreTools.Helper.Help
} }
// Add the pre-space first // Add the pre-space first
string prespace = "";
for (int i = 0; i < preAdjusted; i++) for (int i = 0; i < preAdjusted; i++)
{ {
output += " "; prespace += " ";
} }
output += prespace;
// Now add all flags // Now add all flags
output += String.Join(", ", _flags); output += String.Join(", ", _flags);
@@ -310,6 +314,16 @@ namespace SabreTools.Helper.Help
outputList.AddRange(_features[feature].OutputRecursive(tabLevel + 1, pre, midpoint)); outputList.AddRange(_features[feature].OutputRecursive(tabLevel + 1, pre, midpoint));
} }
// Finally, let's append all additional notes
if (_additionalNotes != null && _additionalNotes.Count > 0)
{
outputList.Add("");
foreach (string note in _additionalNotes)
{
outputList.Add(prespace + note);
}
}
return outputList; return outputList;
} }