eZ Community » Forums » Setup & design »   being added after bold tag????
expandshrink

  being added after bold tag????

  being added after bold tag????

Monday 06 September 2010 3:50:45 pm - 6 replies

We're implementing 4.3 on our new site and something strange is happening whereby is being added after some bold tags

<<span class="start-tag">b</span>>OAG SSIM File</<span class="end-tag">b</span>>
&<span class="entity">nbsp</span>

Anyone got any ideas as to why this would be happening???

Monday 06 September 2010 4:44:49 pm

Hello Andy,

I noticed this problem on several sites we developped in 4.x and still haven't found a solution.

I also really need to remove the extra that is generated after every bold text, so if anyone has a solution, I would be very interested.

Tuesday 07 September 2010 12:05:27 pm

Is this copy and paste from somewhere?

Tuesday 07 September 2010 1:36:00 pm

In my case, no it is not.

The text always comes from typing in ezoe and then I use ezoe formatting buttons.

Modified on Tuesday 07 September 2010 2:11:05 pm by Steven Bressey

Tuesday 07 September 2010 3:09:14 pm

Hi,

Which browser is used ? Can you try to override default strong.tpl by creating your own in your design ?

Tuesday 07 September 2010 3:33:08 pm

I get the same result when editing content wether I use Internet Explorer (7) or Firefox (3.5).

The " " doesn't come from strong.tpl but more likely from paragraph.tpl.

Here is what I get in the source code of the page with debug :

<span class="comment"><!-- START: including template: extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl (design:content/datatype/view/ezxmltags/paragraph.tpl) --></span>
<<span class="start-tag">p</span>>
<span class="comment"><!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/strong.tpl (design:content/datatype/view/ezxmltags/strong.tpl) --></span>
<<span class="start-tag">b</span>>Puis du gras</<span class="end-tag">b</span>>
 
<span class="comment"><!-- STOP: including template: design/standard/templates/content/datatype/view/ezxmltags/strong.tpl (design:content/datatype/view/ezxmltags/strong.tpl) --></span>
&<span class="entity">nbsp;</span>et juste après du texte normal.</<span class="end-tag">p</span>>
 
<span class="comment"><!-- STOP: including template: extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl (design:content/datatype/view/ezxmltags/paragraph.tpl) --></span>
 
<span class="comment"><!-- START: including template: extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl (design:content/datatype/view/ezxmltags/paragraph.tpl) --></span>
<<span class="start-tag">p</span>>&<span class="entity">nbsp;</span>Et 
<span class="comment"><!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/strong.tpl (design:content/datatype/view/ezxmltags/strong.tpl) --></span>
<<span class="start-tag">b</span>>alors</<span class="end-tag">b</span>>

I then had a look at the template file : extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl :

{set $classification = cond( and(is_set( $align ), $align ), concat( $classification, ' text-', $align ), $classification )}
<p{if $classification|trim} class="{$classification|wash}"{/if}>
{if eq( $content|trim(), '' )} {else}{$content}{/if}
</p>

The thing is, the $content variable is not empty as it contains some text ("et juste après du texte normal" ) , so I don't think the problem comes from this template but it is more likely "added/generated by eZpublish" at the beginning of the content when submitting changes. I noticed that sometimes you have to edit the content twice in order to get the " ".

I removed the test on $content in the template, so that the code became :

{set $classification = cond( and(is_set( $align ), $align ), concat( $classification, ' text-', $align ), $classification )}
<p{if $classification|trim} class="{$classification|wash}"{/if}>
{$content}
</p>

But the result is the same ...

I really think this comes from the kernel and/or ezoe, but the question is where ??

I already spent hours looking in the code but could not find it.

Edit : The eZ forum "literal text" generates some extra tags : span class="comment" so the source code you can see in this post is not exactly the same as the real one.

Modified on Sunday 28 November 2010 2:22:05 pm by Steven Bressey

Monday 28 November 2011 9:38:18 pm

Hi,

I have the exact same issue on a 4.3 install. In addition to this, I notice extra spaces immediately after links.

Is there a solution to this problem?

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from