RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Pending Issues

For more information about the ads and why they're here, please see the FAQ

Reply
  1 links from elsewhere to this Post. Click to view. #1  
Old 03-06-2008, 03:28 PM
Registered User
 
Join Date: Mar 2008
Posts: 14
Default Line breaks disappear on copy & paste

Hi there,

for some e-mails, we use pre-formulated text that comes with an e-mail containing a request from a web form.

This text is copied from the e-mail, then the user clicks on "reply" and pastes the text at the top of the reply. When doing this, the line breaks always disappear in the pasted text!

This does not happen with other e-mails, e.g. sent from a mail client to us.

I already tried replacing the line breaks with explicit \r\n's in the text (sent from a PHP script), but that doesn't change anything.

It would be very important to get a solution on this issue for us.

Thank you, any help is appreciated.

P.S.: I have tried it with RC2 and v0.1, it happens with both versions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-29-2008, 03:09 PM
Registered User
 
Join Date: Mar 2008
Posts: 14
Default Problem persists

Hi,

with Roundcube 0.2, this problem is still the same. Am I the only one?

Copying from the preview of a plain text e-mail, then clicking "reply", and pasting the text will remove all line breaks.

Thank you for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-30-2008, 05:59 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,647
Default

Cannot really reproduce it. If you paste into the text editor field, line breaks do not disappear. Yes, if you paste into the html editor they disappear (which seems to be a TinyMCE issue).

So, I would recommend to disable the HTML editor by default.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 09-30-2008, 06:28 AM
Registered User
 
Join Date: Mar 2008
Posts: 14
Exclamation Text Editor

I am only using the text editor all the time - I am not into HTML e-mails. So that cannot be the problem.

I have now done some more testing. The problem seems to be browser specific. It DOES occur with Firefox 3 on Windows and Mac, and it did NOT occur with Safari on a Mac (same server setup, same e-mail).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-30-2008, 08:16 AM
rosali's Avatar
Super Moderator
 
Join Date: Dec 2007
Location: Germany
Posts: 1,647
Default

OK, no I see. I does not happen with IE7, too.

Please release a ticket on RoundCube Webmail ? Trac. Issue should be solved by the devs. I think they have to replace "<br />" by "\r\n<br />" in preview pane.

-Roland
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 10-02-2008, 09:59 AM
Registered User
 
Join Date: Mar 2008
Posts: 14
Exclamation

I have now looked at the HTML source. The message text is put inside a
<div class="pre"> </div>

and has no <br /> breaks.

So I made a test page and found out that the line breaks are not copied by Firefox in the first place for this (which Roundcube uses):

<div style="white-space: pre;">Test
Text</div>

But it is copied if I use
<pre style="white-space: -moz-pre-wrap;">Test
Text</pre>

which seems otherwise functionally equivalent to the above. But where in the code can I replace the <div... with a <pre... ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 10-02-2008, 10:12 AM
Registered User
 
Join Date: Mar 2008
Posts: 14
Lightbulb

I propose using <pre> tags generally with the following CSS:

Wrapping Text Inside Pre Tags at T. Longren
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 10-03-2008, 01:58 PM
Registered User
 
Join Date: Mar 2008
Posts: 14
Default

I would like to add that also, when replying to an e-mail, the line breaks seem to get screwed up. Most replies contain NO line breaks in the quoted text anymore once they come back. To clarify this:

Sender A sends e-mail with "Text A" -> line breaks displayed OK
I reply in Roundcube (under Firefox) -> line breaks OK for quoted text A AND my reply B
Sender A replies to that -> line breaks OK for my reply B and his text C, but the quoted text A has NO more line breaks...

Please - could you look into this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.roundcubeforum.net/5-release-support/17-pending-issues/2652-line-breaks-disappear-copy-paste.html
Posted By For Type Date
#1485425 (Line breaks disappear on copy & paste) ? RoundCube Webmail ? Trac This thread Refback 09-30-2008 09:00 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community