Title: [Plugin: PHP Snippets] carriage return added after every shortcode
Last modified: August 20, 2016

---

# [Plugin: PHP Snippets] carriage return added after every shortcode

 *  Resolved [PhilipParker](https://wordpress.org/support/users/philipparker/)
 * (@philipparker)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-php-snippets-carriage-return-added-after-every-shortcode/)
 * Great plug-in! It’s working well…except:
 * Right after every PHP snippet shortcode I insert in my WP page, the published
   html code includes a carriage return, which displays on the web page as a “space”.
   So if I’m writing a sentence on the web page, and end it with a php-snippet-created
   string, followed by a period, it displays with a space between the php string
   and the period.
 * I’m not sure if it’s the plug-in doing this, or WP.
 * It seems a small detail, but it’s frustrating to have an extra space displayed
   where I don’t want one, and I don’t want to be forced to add the period to the
   php code, as that limits what I can do with that snippet.
 * Thanks for any feedback you can provide.
 * [http://wordpress.org/extend/plugins/php-snippets/](http://wordpress.org/extend/plugins/php-snippets/)

Viewing 1 replies (of 1 total)

 *  [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-php-snippets-carriage-return-added-after-every-shortcode/#post-3126003)
 * Good question… the do_shortcode() function of WP along with the conversions that
   occur with wysiwyg fields could be causing this.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: PHP Snippets] carriage return added after every shortcode’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-snippets.svg)
 * [PHP Snippets](https://wordpress.org/plugins/php-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/php-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-snippets/reviews/)

## Tags

 * [carriage return](https://wordpress.org/support/topic-tag/carriage-return/)
 * [space](https://wordpress.org/support/topic-tag/space/)

 * 1 reply
 * 2 participants
 * Last reply from: [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-php-snippets-carriage-return-added-after-every-shortcode/#post-3126003)
 * Status: resolved