1

Topic: image description with line break

Hi all,

great CMS, thanks a lot! smile

I have a problem with the image description when I typed a line break.   It´s shown as "<br>" like this:

Dekor : rose <br>Form : <br>Größe :

instead of

Dekor : rose
Form :
Größe :

Where is my mistake.


Thank you for help!

Cheers

2

Re: image description with line break

What are you typing in the image description field? You don't need to manually insert a "<br>" when you want to create a linebreak. Just a normal break will do, pluck will automatically convert it.

3

Re: image description with line break

that´s the problem, I type a normally linebreak (enter) but the result is an "<br>" instead of a linebreak ...

4

Re: image description with line break

What version of pluck do you use?

5

Re: image description with line break

the Version is 4.6.1 of Pluck

6

Re: image description with line break

Yes indeed, the album module seems to contain a bug. It has already been fixed for pluck 4.7, but you can fix it manually by following these steps:

1) open data/modules/albums/pages_admin/editalbum.php
2) find the line containing $cont2 = str_replace ("\n","<br>", $cont2);
3) cut and paste that line below the line containing $cont2 = htmlspecialchars($cont2);
4) done!

7

Re: image description with line break

Great !!! It works !!!

Thanks a lot!

big_smile

Cheers,
nobody