[
https://issues.apache.org/jira/browse/GUACAMOLE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16145647#comment-16145647
]
Michael Jumper commented on GUACAMOLE-310:
------------------------------------------
This seems to be due to some of the remaining changes from GUACAMOLE-55. Though
much of those changes were reverted, the changes to the part of Guacamole that
handles reading the local clipboard was not, and clipboard contents are still
internally pasted into a content-editable <div>. The behavior of such <div>s is
problematic, as each browser has its own way of handling pasting of both rich
text and newlines, producing different sets of HTML tags. If newlines are not
inserted at all (relying instead on <br> or <p> or <div>), whitespace can end
up effectively stripped.
> Multi-line text clipboard strips LF
> -----------------------------------
>
> Key: GUACAMOLE-310
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-310
> Project: Guacamole
> Issue Type: Bug
> Affects Versions: 0.9.12-incubating
> Environment: Guacamole hosted on Ubuntu. Client running Chrome using
> extension "Clipboard Permission Manager" on a MacOS.
> Reporter: Kurt Kellner
> Assignee: Michael Jumper
>
> Environment:
> Guacamole 0.9.12
> Chrome on MacOS
> Using Chrome extension "Clipboard Permission Manager"
> If I copy multi-line text from MacOS and paste in text editor in Windows, all
> the CR (or CR/LF) are stripped out of the pasted text.
> The same thing happens if connecting to Linux XRDP via RDP.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)