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?
-
Is there some reason you are not using the html version of your emails? Formatting is much easier.
I am, actually. Is there a way to upload a screenshot here?
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.
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: https://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.
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 [email protected] and I will take a look.
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?
Did you enable it for capturing as described on https://postieplugin.com/downloads/support-addon/ (different than activating the plugin)
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.
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 "I'll follow".</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.
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?
>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.
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/
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?
Oops. I sent the support file to the help@ email address. So you’ll find it there.
Thanks for the info about the Gmail interface. I’ll look at the logs you sent when I get a chance.
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 6 years, 5 months ago by Wayne Allen.
- The topic ‘Filter new lines’ is closed to new replies.