Forums / Developer / problem with tags in xml blocks

problem with tags in xml blocks

Author Message

Jean-Yves Zinsou

Tuesday 09 June 2009 6:27:07 am

Hi all,

can anyone tell me where is the php function that parses the xml blocks content to replace the tags by the html code?

the problem i have is that when ezpublish replaces the tags with , for example <b> and </b> it surrounds the code with new lines, what creates a spaces in the final result

If i watch the source code i have

blablab
<b>my bold</b>
bla bla

and not

blablab<b>my bold</b>bla bla

as expected ...

I would like to see if i can fix it in the rendering code.

thanks for anyhelp ...

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Yannick Komotir

Tuesday 09 June 2009 10:36:18 am

Hi,

You can fix it by deleting all newline in the concern tag in content\datatype\view\ezxmltags.
example

     {* DO NOT EDIT THIS FILE! Use an override template instead. *}
    <sub>{$content}</sub>

 

comes

{* DO NOT EDIT THIS FILE! Use an override template instead. *}<sub>{$content}</sub>
 

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk