Forum .LRN Q&A: Forums plain text formatting bug?
If you type to CRs to insert a blank line, the preview and post view
page just show one big block of text.
I noticed this on a bboard migration test. All the paragraph
formatting was lost.
I don't know if it is a display issue, or a database issue.
Konqueror. Galleon and Netscape are able to display it fine.
What I said in reponse was:Modified Files: text-html-procs.tcl Log Message: added code to ad_text_to_html to Convert _single_ CRLF's to <br>'s to preserve line breaks
It was very much on purpose that I didn't include this in code originally./Lars
If you do this, then the formatting begins to be dependent on accidental returns that you cannot see in your textarea.
I decided that since the desire for explicit formatting is relatively rare, you'll have to live with having to either (a) select the preformatted style, (b) select HTML style and add the <pre ></pre> tags yourself, or (c) stick with plain, but use double-enters for your line breaks.
I see a call to ad_text_to_html in /forums/www/message-preview-chunk.tcl. However, I don't see an attempt to convert text to html in /forums/www/message-view.tcl. I also checked the possibility that the content is converted before it put in the database and this was not the case.
So my conclusion is that there is no text-to-html conversion attempted at all. Is this the case and is someone actively working on it (in which case I'll just wait)?
Nope, this is not fixed yet. We're working with Lars on it.
I've been working on forums and have a bunch of uncommitted UI improvements. I'll commit once we figure out this issue.