Removes all the extra whitespaces at end of lines, inside tags, and removes extra newlines
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>