Please fix that. I know it has been a problem for a long time now....
Please fix that. I know it has been a problem for a long time now....
We might be able to try some css to change this for you.
When you make a post in newfeed with a image it looks good until you click on send once you click on send the text has no paragraph breaks or line breaks.
The strange thing is when you go to the photo section and look at the image the descrition you typed looks just the way it did before you clicked on send.
This is exactly what I get. A "Title" then a line break, after that all text is in one continuous line, no line break, no paragraph.
Try to write this in a Photo album description in your test setup.
Line one
Line Two
Line Three
Line Five
Ole
But if anyone can check this out or has found a solution to it can you please share.
It makes the website look tacky and it doesn't look well for Oxwall community due to the fact of the websites saying Powered by OXWALL.
It's very simple: When you display a text that contains line breaks (it can be CR, LF or CRLF), you have to replace it with <br>
This is the function of PHP nl2br().
There is a |nl2br modifier in Smarty but it is obsolete so we can no longer use it because it generates a warning and does not modify the text.
There are two ways to solve this:
by storing the converted text or converting it only when it is going to be displayed on the screen.
This last option is the most interesting because it will not have any unwanted side effects anywhere, since it does not alter the stored values and we do not know what plugins are going to use it.
It will also be very ugly and unprofessional if the user edits that text and HTML codes appear in the middle.
In this piece of code from a plugin of mine:
$writer = MAGAZINE_BOL_WriterDao::getInstance()->findById($writerId);
$writer->description = nl2br($writer->description);
$this->assign('writer', $writer);
You can see how I modify the description of the $Writer class before assigning it to a function of displaying data on the screen. If $Writer had to be stored again it could use the inverse function br2ln() but it would be better to use a copy of $writer and respect the text entered by the user. Modifying and demodifying it could be that you alter it.
Now we have to find where to insert that nl2br() in the photo plugin and verify that the smarty |nl2br modifier is not being trusted for this task because it is obsolete.
A photographic album or photo album, is a series of photographic prints collected by an individual person or family in the form of a book. ... Older style albums often were simply books of heavy paper on which photos could be glued to or attached to with adhesive corners or pages. mybk-experience.onl www.mcdvoicesurvey.onl