Fixed issue when calculated value input boxes had newlines in them.