upgrade 4.5.1 print($c->getAttribute) gives break

Permalink
Hi,

Also reported a bug, but maybe someone has an answer sooner...
On different websites I use a different background image on different pages. I do this with a custom attribute 'background' and the print($c->getAttribute) command in my stylesheet.
This worked well until i did the upgrade to 5.4.1.
In the generated source code a see a break between my filename and extension.
My code:
#backgroundImg {
 background-image:url(<?php echo $this->getThemePath()?>/images/<?php print($c->getAttribute('achtergrond'));?>.jpg);
   background-repeat: no-repeat;
   background-position: left top;}

Generated source:

#backgroundImg {
 background-image:url(/packages/theme_mverhaak/themes/mverhaak/images/header1
.jpg);
   background-repeat: no-repeat;
   background-position: left top;
}


To be clear between the header1 and .jpg is a break now. And my background is lost.

I'm forced to go back to the previous version for those websites.

Hope someone had a solution!

annekeh