Problem with ODTs and layout headline

Hi,

I create an invoice ODT template and everything went well.

Now I like to bring an IF-clause into the layout headline area. It also convert the attribute name to the value but does not remove the IF-clause.

The line :

[!-- IF {object_ref_customer} --]{object_ref_customer}[!-- ELSE {object_ref_customer} --][!-- ENDIF {object_ref_customer} --]

in the template is converted while PDF creation into

Normal Text Area :
Customer_Ref_ID100x
–> which was the value in object ref_customer --> OK

If I use the same line in the layouts head area it will be converted to :
[!-- IF Customer_Ref_ID100x --]Customer_Ref_ID100x[!-- ELSE Customer_Ref_ID100x --][!-- ENDIF Customer_Ref_ID100x --]
–> as you see, the value is exchanged but the IF clause was not recognized --> KO

Some one has an idea, what to do or it is potentially a bug in the ODT-PDF processor ?

Regards,
Christian