I am getting extra spaces and early line break on the indesign file. Indesign file is generated programmatically using Javascript. I was trying following script but nothing changed on indesign file.
app.findTextPreferences.findWhat="^\s?(.)";
app.changeTextPreferences.changeTo="$1";
Your assistance in this matter would be greatly appreciated.