RTE is automatically adding white-spaces in between the html code added via source code plugin. Even when I remove the space, save and re-open, the white-space comes back again.
Is this a known bug in AEM 18.104.22.168?
I cannot reproduce this issue on 6.4.6 using the RTE at 
Can you share your rte component?