Determine the linefeed from the content.
Add test for addScript.