improved browser support on shifting to new line.