Fix wrong result caused by newline character.
Add additional output of height on an extra line.
Fix whitespace.