private string DecreaseTabIndent(string text) {
var output = "";
var found = false;
var consume = true;
// Add first intent
for (int n = 0; n < text.Length; ++n) {
var c = text [n];
found = (c == Formatter.Newline || c == Formatter.LineSeparator || c == Formatter.ParagraphSeparator);
// Include char in output?
if ((int)c == TabKey && consume) {
consume = false;
} else {
output += c;
}
// Decrease tab level?
if (found) {
// Yes
consume = true;
}
}
// Return results
return output;
}
#endregion