The autop function can be very annoying when you’re trying to format content. But some plugins depend on autop to work, such as the checkout function in EDD, and possibly (still investigating) Gravity Forms credit card submission.
To remove, add the following to the functions file, or to an MU plugin.
//remove autop filter remove_filter('the_content', 'wpautop'); remove_filter('the_excerpt', 'wpautop');