Fix #241, check if dot after newline, and change indentation