Title: Filter new lines
Last modified: May 27, 2018

---

# Filter new lines

 *  Resolved [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/)
 * Hello!
 * For some reason, I can’t seem to get Postie to recognize new lines and/or line
   breaks. When my email contains:
 * Paragraph 1.
 * Paragraph 2.
 * The post that gets generated is:
 * Paragraph 1.
    Paragraph 2.
 * I am filtering new lines and replacing with HTML <br />.
 * Is this a bug? Can it be fixed?

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

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10333097)
 * Is there some reason you are not using the html version of your emails? Formatting
   is much easier.
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10333112)
 * I am, actually. Is there a way to upload a screenshot here?
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10333140)
 * You are probably dealing with how your theme styles the page. I suspect if you
   switch to a different theme the spacing between paragraphs would change.
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10333205)
 * Sorry, Wayne, but I don’t think so.
 * When I look at a post that was generated via Postie vs. a post that I entered
   manually, I get very different formatting.
 * Please go to: [http://www.thetalkingdoc.com/resources](http://www.thetalkingdoc.com/resources).
 * Look at the Monday Test #1 post (created manually with one return key between
   each of the 3 paragraphs). Then look at the Sunday Test #3 post (created by Postie
   with one return key between paragraphs 1-3, 2 return keys between paragraphs 
   3-4 and 3 return keys between paragraphs 4-5. They all look the same in the Sunday
   Test #3 post.
 * I must have something set incorrectly, but I just can’t find it.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10333347)
 * Here is the key bit from Monday Test #1
 *     ```
       <div class="entry-content" itemprop="text">
       <p>Paragraph #1.</p>
       <p>Paragraph #2.</p>
       <p>Paragraph #3.</p>
       </div>
       ```
   
 * Here is the same spot in Sunday Test #3
 *     ```
       <div class="entry-content" itemprop="text">
       <div dir="ltr">Paragraph #1.<p></p><div></div>
       <div>Paragraph #2.</div><div></div>
       <div>Paragraph #3.</div><div></div><div></div>
       <div>Paragraph #4.</div><div></div><div></div><div></div>
       <div>Paragraph #5.</div><div><div></div></div>
       <span class="post-meta-infos"><time class="date-container minor-meta updated">May 27, 2018</time><span class="text-sep text-sep-date">/</span><span class="blog-author minor-meta">by <span class="entry-author-link"><span class="vcard author"><span class="fn"><a href="https://thetalkingdoc.com/author/doc-v/" title="Posts by Doc V." rel="author">Doc V.</a></span></span></span></span></span></div>
       </div>
       ```
   
 * It looks like your email client is using `<div>` rather than `<p>` for paragraphs.
 * If you want to confirm this please install the Support AddOn and enable it and
   send a sample email through then send the resulting file from your media library
   to [help@postieplugin.com](https://wordpress.org/support/topic/filter-new-lines/help@postieplugin.com?output_format=md)
   and I will take a look.
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10333458)
 * Hi Wayne,
 * I downloaded the Support AddOn (v1.0.8). Activated it. Sent a new email. Manually
   processed it. But I don’t have any new file in my site’s media library.
 * Have I done something wrong?
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10334172)
 * Did you enable it for capturing as described on [http://postieplugin.com/downloads/support-addon/](http://postieplugin.com/downloads/support-addon/)(
   different than activating the plugin)
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10334246)
 * Oops. I got it now and sent it off to the ‘help@’ email address.
 * Thanks, Wayne! I sure hope we can figure out what’s going on — my side or yours.
 * Thanks again.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10337395)
 * Thanks for the logs, here is what Postie found in the email:
    `<div dir="ltr"
   >Paragraph #1.<div><br><div>Paragraph #2.</div><div><br></div><div><br></div>
   <div>Paragraph #3.</div><div><br></div><div><br></div><div><br></div><div>Paragraph#
   4.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Paragraph#
   5.<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"
   ><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="
   font-size:12.8px"><span style="font-size:12.8px">Thanks!</span></div><div style
   ="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style
   ="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style
   ="font-size:12.8px"><span style="font-size:12.8px">Jeff</span></div></div><div
   dir="ltr"><i><b><br></b></i></div><div dir="ltr"><i><b><br></b></i></div><div
   dir="ltr"><i><b>Follow my journey to create a new blog about building websites,
   just reply with &quot;I'll follow&quot;.</b></i></div></div></div></div></div
   ></div></div></div>`
 * You’ll need to look at and/or change the email client you are using to get a 
   different result.
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10337495)
 * Hi Wayne,
 * I’m using Gmail as my email client. From what you’re suggesting either one of
   two things are true:
 * 1. Every Postie customer who is using Gmail as their email client is getting 
   the same results as I am. If this is true, are you working on a fix for Gmail
   users?
    2. No other Postie customers who are using Gmail as their email client
   is getting the same result, so I must have changed some setting in Gmail that
   is causing this issue. If this is true, what setting might I have changed to 
   get this bad result?
 * It looks like Postie is (per my Message settings) filtering out new line chars
   and replacing them with line breaks. Shouldn’t this <br> solve the problem?
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10341694)
 * >1. Every Postie customer who is using Gmail as their email client is getting
   the same results as I am.
 * This is not true. AFAIK many, many people use gmail without this problem, including
   myself.
 * >2. No other Postie customers who are using Gmail as their email client is getting
   the same result
 * This is the first time anyone has reported this issue, so it is likely specific
   to you.
 * > If this is true, what setting might I have changed to get this bad result?
 * I have no idea. You might check with gmail support.
 * >It looks like Postie is (per my Message settings) filtering out new line chars
   and replacing them with line breaks. Shouldn’t this <br> solve the problem?
 * No. New lines in html are ignored so in fact there may be no newlines in an html
   email even if there are multiple paragraphs. I would turn off this setting as
   it is mostly for people sending plain text messages.
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10350576)
 * Hi Wayne,
 * I think I found a difference. When I was using Gmail to send my Postie emails,
   I was using the NEW Gmail interface. I switched it back to the old interface 
   and sent another email for Postie to process and I’m getting proper paragraph
   breaks. See this post: [https://thetalkingdoc.com/friday-test-2/](https://thetalkingdoc.com/friday-test-2/)
 * I’m attaching the support file from this new post.
 * It seems like Gmail might have changed how it handles/creates line breaks?
 * Thoughts on how to proceed?
 *  Thread Starter [jeffbianchi](https://wordpress.org/support/users/jeffbianchi/)
 * (@jeffbianchi)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10350584)
 * Oops. I sent the support file to the help@ email address. So you’ll find it there.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10353467)
 * Thanks for the info about the Gmail interface. I’ll look at the logs you sent
   when I get a chance.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10363927)
 * Thanks for the logs. This time you only sent a plain text version of the email.
   No html version was present.
 *     ```
       Paragraph #1, after which I'll hit the enter/return key 1 time.
       Paragraph #2, after which I'll hit the enter/return key 2 times.
   
       Paragraph #3, after which I'll hit the enter/return key 3 times.
   
       Paragraph #4, after which I'll hit the enter/return key 4 times.
   
       Paragraph #5, after which I will NOT hit the enter/return key.
   
       -- 
       Thanks!
   
       Jeff
       ```
   
    -  This reply was modified 7 years, 11 months ago by [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/).

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

The topic ‘Filter new lines’ 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/)

 * 15 replies
 * 2 participants
 * Last reply from: [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/filter-new-lines/#post-10363927)
 * Status: resolved