Fixed newlines in elements (fixes #3)