Extract _reset_newline_status()
Fix typo
Update reference URLs