Whitespaces in tomcat with Magnolia (CMS) or OpenCms

If you have worked with OpenCms (or JSPs in general) before, you may experienced the problem with unwanted whitespaces in the resulting HTML.Off course in Magnolia you rarely work with JSP's anyway. There are ways to avoid this by configuring the web. ...