AppKit.TextKit.Formatter.SourceTextView.IncreaseTabIndent C# (CSharp) Method

IncreaseTabIndent() private method

Increases the tab indent on the given section of text.
private IncreaseTabIndent ( string text ) : string
text string The text to indent.
return string
		private string IncreaseTabIndent(string text) {
			var output = "";
			var found = false;

			// Add first intent
			output += (char)TabKey;
			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
				output += c;

				// Increase tab level?
				if (found) {
					// Yes
					output += (char)TabKey;
				}
			}

			// Return results
			return output;
		}