Correction of the problem that a newline is added to by google chrome browser

Fixes #2447