When compiling, in Section Layouts, have you checked “on” the “Override text and notes formatting” and then defined there what you want? If not, what have you done in the compile settings to attempt to get what you want, but is not working for you?
Subsequent edit: also, if there is left over crud with what you pasted in, if you turn on the “invisibles” to show pilcrows, tabs, etc., might help in identifying stuff you want to clear out or change.