Plugin Author
Franky
(@liedekef)
In theory a linebreak should be changed to a br-tag, so EME works as expected. But, it seems my code was a bit too gready and added linebreaks after p and div tags, maybe that’s your issue here?
I’ve already updated the code to be more correct in that regard. You can download eme_functions.php from here: https://plugins.trac.ww.wp.xz.cn/browser/events-made-easy/trunk/eme_functions.php?rev=2603953
(direct text link: https://plugins.trac.ww.wp.xz.cn/browser/events-made-easy/trunk/eme_functions.php?rev=2603953&format=txt )
and replace your version with it if you’re comfortable doing that. See if that helps already.
If not: please do provide an example so I can check further.
thank you for the fast answer!
how can i send you screenshots from my example here? or could you provide me an e-mail address?
Plugin Author
Franky
(@liedekef)
Screenshots don’t help with html, I can’t debug that. Please provide a link. Also: did you try the fix already?
i tried the fix and it works like a charm 🙂 thank you!
as the maintenance mode on the website i’m working on is now off, i can provide you with a link: https://www.willkommen-in-halle.de/events/frauencafe-deutsch-fuer-frauen-16/
but as the problem is solved, it won’t help you, or?
Plugin Author
Franky
(@liedekef)
Indeed, if the problem is solved there’s no need anymore 🙂
Hi Franky,
I just ran across the issue, too.
Unfortunately, the problem still persists for me, even after uploading the modified eme_functions.php
As you mentioned you code is “greedy” and inserts <br> tags not only after div and p but also after other tags, too. In my case, <dt> and <dd> tags, as I’m using defintion lists for my event listings for semantic reasons..
Here’s an excerpt of my template code:
<div class="now-eventList-event">
<dt class="now-eventName">#_LINKEDNAME</dt>
<dd>
<div class="now-presenterColumn">
<p><span class="now-presenterImage">#_CONTACTIMAGETHUMB</span></p>
</div>
By the way – I’m using the standard event template under EME settings -> Events. And there’s no setting about converting newlines to br as there is for templates created in the templates section, is there?
Thanks!
-
This reply was modified 4 years, 8 months ago by
kinghill.
I entered this as a bug in the E-dynamics bug forum.
I applied the modified eme_functions.php linked above.
That fixed the most obvious cases (div and p tags generating a br tag) but I am finding some remaining problems.
First one is that a <br> is generated after heading tags in templates.
I have an <h4> which gets a <br> rendered after it.
Example – code in template:
<h4>Registration</h4>
Rendered code:
<h4>Registration</h4>
<br>
I will post more remaining issues if/as I find them.
First one is that a <br> is generated after heading tags in templates.
I have an <h4> which gets a <br> rendered after it.
Ah, yeah, you’re right, just noticed this with me, too.
<h3>
is definitely affected, too.
Plugin Author
Franky
(@liedekef)
The version of eme_functions.php has been updated since 🙂
I released 2.2.23 that should fix those issues.
Just installed the update. That fixed the br tag after heading tag. Don’t see any other issues at this time in my templates, thanks!
Same here, update installed. And everything is great!
Thank you, Franky, for your prompt reaction and fix!