Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What is the code that Evernote generates?
Thread Starter
CC
(@cinful)
Fast answer:
Extra <div> and also  
Is there a place I can email you? I have screen shots that were provided to Evernote previously. I would prefer not to put those in this forum.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I’m not from WordPress, nobody here is, so unfortunately you cannot email people.
Could you copy and paste the code generated from a dummy Evernote note and put that code into http://pastebin.com ? Then link us to that PasteBin page
Thread Starter
CC
(@cinful)
No need. Here is a sample:
Here is a sample:
<div>Add blueberries and gently stir into the batter.</div>
<div>Pour into greased bread pan (mine is glass) and back for 60-70 minutes (depending on your oven and altitude)—Mine took a full 70 minutes at mile high altitude—I covered it at 50 minutes with tinfoil so the top wouldn’t burn.</div>
<div>Check doneness by inserting a knife in the center. If it comes out clean it’s done.</div>
<div>Cool in it’s pan for 5-8 minutes then trace the edges with your knife to loosen, remove loaf and cool on a wire rack.</div>
<div>Be sure to eat some while it’s warm and then store it in an airtight container in the fridge.</div>
<div>This bread is amazeballs toasted the next day for breakfast!</div>
<div></div>
Thread Starter
CC
(@cinful)
Puts a <div> after everything. Used to add a bunch of  ’s but that seems to not be happening now.
Just discovered something doing this too. It doesn’t seem to happen if I C/P into TEXT vs. Visual. Again, not ideal but better than my previous work around.
Still would like a fix.
How DO I get someone from WordPress.org to look into this?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The extra <div></div> bit is generated by Evernote before it gets to WordPress?
Thread Starter
CC
(@cinful)
Not sure how I would find out. I suppose it could be after upon C/P
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
There isn’t someone from WordPress.org. There’s a website called WordPress.org that distributes the “WordPress” software, and that software is built and maintained as an open source project. I’m not sure where you got the information from that WordPress is a company.
Thread Starter
CC
(@cinful)
Sorry. I didn’t–when you said you weren’t from wordpress, I just assumed that there was a “wordpress” to contact. I guess my intent was to ensure that if this is a WordPress bug that it gets reported to be fixed in a future update. I haven’t had many issues with WP before so your patience in helping me understand the process of reporting/fixing/help is appreciated.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
If Evernote is generating empty divs then I think it needs to be fixed at their end. By the way, divs don’t have spacing by default. Your theme will be generating that.
Thread Starter
CC
(@cinful)
That was my guess as well–that it is an Evernote issue. Thanks.
At least I discovered it doesn’t happen when I cut and paste directly into TEXT vs. VISUAL. That would at least save time in workarounds.
For my own education since I’m not a coder: What do you mean that my theme would make <div> create spaces. Not sure I understand. I always thought <div> was the code for a break?
Thanks again.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Are you familiar with “CSS”? Themes use CSS to style your website, well, theme authors use CSS to style your theme. CSS is the thing that controls the appearance of your website. By default <div> elements will not have spacing, unless a theme author has applied spacing to it via CSS.
Thread Starter
CC
(@cinful)
Good to know. Thank you. And thanks for your patience. Cheers!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Assuming you’re using a theme distributed on WordPress.org, this could be workaround that can mask the problem from users…
- Download this plugin: https://wordpress.org/plugins/custom-css-js-php/
-
Go to the “Add New JAVASCRIPT” area (screenshot)
- Add this code:
// Hide empty divs from the post
jQuery(document).ready(function($) {
var emptyDivs = $('.entry-content div:empty');
emptyDivs.hide();
});
- Save