Roundcube Community Forum

 

Plain Text to HTML

Started by Leen15, November 17, 2013, 07:32:40 AM

Previous topic - Next topic

Leen15

Hi to all, i hope this is the right section.

When plain text is converted to HTML it results that the text is put between <pre></pre> tag and the recipients see it in very bad formatting:




Is possible in the next release to change it from pre tag to a more readable tag?

The issue (0.9.5) is in \program\js\app.js.src at line 6093:
    $('#'+id).val(plain ? '<pre>'+plain+'</pre>' : '');

For now i changed it with:
    $('#'+id).val(plain ? '<p>'+plain+'</p>' : '');

Thanks.