Wordpress unfortunately add additional carriage returns and markup when you make edits in visual mode in a page or post. If you do make changes in visual mode, always switch back to text mode afterwards to check that the shortcode markup is still intact and no other markup has broken the shortcode.