Title: Formatting wrong from Gmail (I think)
Last modified: August 30, 2016

---

# Formatting wrong from Gmail (I think)

 *  Resolved [peejaygee](https://wordpress.org/support/users/peejaygee/)
 * (@peejaygee)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/)
 * I need some help and/or guidance please. I have Postie installed and it appears
   to be working as intended when it comes to the posting from an email, but the
   formatting goes all wonky, I don’t know if it’s a Postie thing or a Gmail thing
   or even a WordPress thing.
 * I will send something like the following in an email
 * > Morning peeps, the week is slowly progressing (well, not THAT slow for me).
   > I have already put this on my FB feed, but I did not put it on my twitter feed,
   > so I figure I will repeat it for people who missed it first time around.
   > Facebook will NOT be charging to use or share, or whatever the current hoax
   > is flying around.
 * and it will end up like
 * > Morning peeps, the week is slowly progressing (well, not THAT slow for me).
   > 
   > I have already put this on my FB feed, but I did not put it on my twitter [
   > newline appears here] feed, so I figure I will repeat it for people who missed
   > it first time around.
   > Facebook will NOT be charging to use or share, or whatever the current hoax[
   > newline appears here]
   >  is flying around.
 * You can see were it appears to add in carriage returns were it doesn’t need too.
 * Is this something someone can help me with?
 * Regards
    Paul.
 * I had to add [newline appears here] into the post, as even copying and pasting
   from my site, this forum seemed to correct the formatting.
 * [https://wordpress.org/plugins/postie/](https://wordpress.org/plugins/postie/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596579)
 * I’m guessing that you have “Preferred Text Type” set to “plain”
 * Try changing “Preferred Text Type” to “html”
 *  Thread Starter [peejaygee](https://wordpress.org/support/users/peejaygee/)
 * (@peejaygee)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596628)
 * When I switch it to HTML, any carriage returns that are put into the email don’t
   transpose over to the post, it just does one big continuation. I think that was
   the reason I switched it to plain in the first place.
 * Do you know a work around for that? the lack of carriage returns in HTML from
   GMail to Postie?
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596629)
 * Please send a sample email to [test@postieplugin.com](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/test@postieplugin.com?output_format=md)
   then leave a note here that you have done so. I will take a look.
 *  Thread Starter [peejaygee](https://wordpress.org/support/users/peejaygee/)
 * (@peejaygee)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596630)
 * Posted, I just sent the email I sent this morning that gave me the ‘no line break’
   issue for myself.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596637)
 * Here is the text version of what is being sent
 *     ```
       So, it is Wednesday, we are halfway through the week, the weekend is nearly
       here. Hope you are all having a wonderful week so far and looking forward
       to the weekend.
   
       The wife and I will be going to a concert this weekend, so you can expect
       to see pictures from that.
   
       Hope you have an enjoyable rest of your day.
   
       [image: Inline images 1]
       ```
   
 * Looks like Gmail is wrapping the text at about 76 characters.
 * I did switch my test system to “html” and the message looks correct at least 
   with the twentyfifteen theme. [http://screencast.com/t/gWy3lUzv5D5X](http://screencast.com/t/gWy3lUzv5D5X)
 *  Thread Starter [peejaygee](https://wordpress.org/support/users/peejaygee/)
 * (@peejaygee)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596650)
 * Well, if you look at the email, I have a space between the paragraphs, but on
   your test it looks the same as my site, the space gets removed.
 * see my front page at [http://pjg-developments.com/](http://pjg-developments.com/)
   you’ll see what I mean.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596653)
 * This is the raw html that Postie received:
 *     ```
       <div dir="ltr">
       <div class="gmail_quote">
       <div dir="ltr">So, it is Wednesday, we are halfway through the week, the weekend is nearly here. Hope you are all having a wonderful week so far and looking forward to the weekend.<div>
       <br>
       </div>
       <div>The wife and I will be going to a concert this weekend, so you can expect to see pictures from that.</div>
       <div>
       <br>
       </div>
       <div>Hope you have an enjoyable rest of your day.</div>
       <div>
       <br>
       </div>
       <div>
       <img src="cid:ii_1501e916dc013d64" alt="Inline images 1" height="452" width="436">
       <br>
       </div>
       </div>
       </div>
       <br>
       </div>
       ```
   
 * If you look at the source of your page you will notice that all the `<br>` elements
   have been removed. If you look at the post in text mode you will see the `<br
   >` elements. Somehow during rendering WordPress is removing them. In fact you
   can see this happen if you switch back and forth between Visual and Text mode
   in the editor.
 *  Thread Starter [peejaygee](https://wordpress.org/support/users/peejaygee/)
 * (@peejaygee)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596654)
 * When I switch the post to ‘edit’ mode, the spaces between the pages are there,
   but on the live mode they are not. I’ll have to deal deeper into the WP php’s
   and/or addons I might have running.
 * Still puzzles me though, that is does the same to your example picture, maybe
   it’s not an addon, more the WP itself.
 *  Thread Starter [peejaygee](https://wordpress.org/support/users/peejaygee/)
 * (@peejaygee)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596656)
 * Dun, Dun, Dunnnnnnn, it WAS WordPress.
 * I just installed a plugin to disable the WordPress Auto formatting (as I really
   didn’t want to mess with PHP) and the last post we’ve been discussing about, 
   now looks all correct and spaced the way it should be.
 * While it wasn’t an issue with your plugin, I really thank you for allowing a 
   fresh perspective on it and getting to a point were I know what was causing it.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596657)
 * My pleasure.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Formatting wrong from Gmail (I think)’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/formatting-wrong-from-gmail-i-think/#post-6596657)
 * Status: resolved