Expansions cannot be toggled to "off". This happened suddenly. I did not, to my knowledge, set a global preferfence to always edit HTML in expanded view. I've found only one other forum post on this topic with no responses by a user who referred to the issue as "extra spaces". It took me awhile to find the "expansions" option. Highly annoying. Switching to an external HTML editor (Notepad++). Wish I could get off RoboHelp entirely!
Can you expound on exactly what you are expecting the "Expansions" to do?
Before offering further help, I'd like to ensure you know what the feature is for to see if we are on the same page.