Line Feeds not printed in Image description in 1.4.5.5

Hello,
I've just updated my site to the latest version 1.4.5.5. Everything works but my image and albums description just lost the line feeds. What was in 3 lines is now in 1 line in the gallery, but is correctly displayed in the back-end.
Eg:
Backend Image desc:
Line1
Line2
Line3

Image desc in the gallery:
Line1 Line2 Line3

Comments

  • Anyone can help me on this? Is this happening to someone else?
    Thanks in advance!
  • acrylian Administrator, Developer
    Which theme? TinyMCE enabled?

    Just to add:
    If you mean "line feed" in the real sense and not line breaks and parapgraphs those probably don't work. Formatting is and should be done using HTML which is produced by standard using TinyMCE.

    I seem to remember that there was pure line feed recognizing in the old days but then you must have upgraded from a very old version.
  • HI Acrylian, thanks for the answer.
    I've just updated from the 1.4.4.3, it was working ok, but now I can only put multiple lines with the </br>. I've tried to activate the TinyMCE and it's having the same problem. I wrote:
    Line1
    Line2
    Line3

    and it displays:
    Line1 Line2 Line3

    I've tried this with my theme, with the default theme, in my web server and in my personal laptop localhost... and it's the same in all machines / servers.
    Now, you are right about the HTML formatting... if I put </br> it works perfectly, but this was working before without the HTML formatting. And you're right again with the Tiny_mce, I've enable it and if I right down everything again it works...
    So the question is now, what changed that this was working with the HTML formatting and now is not? Is possible to make some action to put this working without having to change 192 photos in 3 languages?
    Thanks!!!!
  • You can view your entry from a database manager application and see what is stored in the database for these. But my best guess from your descriptions is that `tinyMCE` is not processing your data or that you have somehow excluded paragraph tags as legal HTML in you allowed tags option.

    Simple `newLine` characters are treated as white-space by browsers. `tinyMCE` would normally put paragraph tags around each "line" in your text.

    So, if the database has `newLine` characters, `tinyMCE` is not getting involved. If it has spaces then something is stripping out the paragraph tags.
  • I guys,
    Thanks again for the help...
    Well, since I don't wont to use the tiny_mce, I will use from now on the </br> to create my line breaks.

    Still, is funny that I was using normal line feeds without using the tiny_mce and this is not the correct way of doing it, but was indeed working. :-)

    Ok, the solution is clear for me (and the way of using it as well, indeed is quite logic what you explained to me), everything is working with html tags, thanks very much guys, you rock!!!!

    Cheers!
Sign In or Register to comment.