Fixed nested lists causing superfluous trailing newlines