Saves text with text indentation for readability. How to remove?

Hi, I have a problem with at text that is saved to a file.
By default, flash seems to add automatic indentation, while the picked text does not seem to have this indentation.

Come to think of it, perhaps it is because it is xml that I save to txt?

hmmm…

[COLOR=#3DA779][FONT=Monaco]function[/FONT][/COLOR][FONT=Monaco] exportTextLayerTxts(fileDest:String):[/FONT][COLOR=#0052FF][FONT=Monaco]void[/FONT][/COLOR][FONT=Monaco]{[/FONT]
[FONT=Monaco]	[COLOR=#78aad6]var[/COLOR] file_dest:String = removeFilenameFromPath(fileDest);[/FONT]
[FONT=Monaco]	[COLOR=#0052ff]for[/COLOR] ([COLOR=#78aad6]var[/COLOR] i:int = 0; i < textforsaveArr.length; i++) [/FONT]
[FONT=Monaco]	{[/FONT]
[COLOR=#AB1500][FONT=Monaco][COLOR=#000000]		tracew([/COLOR]"exporting file"[COLOR=#000000]);[/COLOR][/FONT][/COLOR]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] fileName:String = textforsaveArr*[0];[/FONT]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] xmlNode:XMLList = textforsaveArr*[1];[/FONT]
[FONT=Monaco]		[/FONT]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] xmlString:String = xmlNode.toXMLString();[/FONT]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] newXMLfromString:XML = [COLOR=#0052ff]new[/COLOR] XML(xmlString); [/FONT]
[FONT=Monaco]		[/FONT]
[FONT=Monaco]		[/FONT]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] fileDestPath:String = file_dest + fileName;[/FONT]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] file:File = [COLOR=#0052ff]new[/COLOR] File(fileDestPath);[/FONT]
[FONT=Monaco]		file = file.resolvePath(fileDestPath);[/FONT]
[FONT=Monaco]		[/FONT]
[FONT=Monaco]		[COLOR=#78aad6]var[/COLOR] stream:FileStream = [COLOR=#0052ff]new[/COLOR] FileStream();[/FONT]
[FONT=Monaco]		stream.open(file, FileMode.WRITE);[/FONT]
[FONT=Monaco]		stream.writeUTFBytes(newXMLfromString);[/FONT]
[FONT=Monaco]		stream.addEventListener(Event.CLOSE, fileClosed);  [/FONT]
[FONT=Monaco]		stream.close();[/FONT]
[FONT=Monaco]		[/FONT]
[FONT=Monaco]		[COLOR=#3da779]function[/COLOR] fileClosed(event:Event):[COLOR=#0052ff]void[/COLOR] {  [/FONT]
[COLOR=#AB1500][FONT=Monaco][COLOR=#000000]			tracew([/COLOR]"closed event fired"[COLOR=#000000]);  [/COLOR][/FONT][/COLOR]
[FONT=Monaco]		} [/FONT]
[FONT=Monaco]	}[/FONT]
[FONT=Monaco]}[/FONT]