function normalize(text) {
		var indentation = '\t';
		if (!Editor.getUseTabChar()) {
			indentation = '';
			var units = Editor.getSpaceUnits();
			while (units--) {
				indentation += ' ';
			}
		}

		return editorUtils.normalize(text, {
			indentation: indentation,
			newline: '\n'
		});
	}
Normalizes text before it goes to editor: replaces indentation
and newlines with ones used in editor
@param  {String} text   Text to normalize
@param  {Editor} editor Brackets editor instance
@return {String}