This fixes test-localized-portlet in for 6.2.x branch. The problem is that test portlet leverages on <liferay-util:buffer>, which in 6.2.x version does not trim extra whitespaces from the output, so the test ends up comparing blah to nttblahnt, thus always failing.\nI push this on to branch 6.2.x but this should work ok in master too.