[Bug 6400] Phantomtest records scripts with too many line breaks