tidy up editable html and remove line end spaces
this breaks things roll it back