Kaydet (Commit) 278baa55 authored tarafından Matúš Kukan's avatar Matúš Kukan

cp#1000078: Replace "\r\n" with "\n" when pasting from X11 clipboard.

E.g. when pasting from terminal you will get "\r\n".

Writer inserts '\r' character into the document as an
invisible character. If you save that to .odt and reload, you will
get ' ' instead. Or when saving to .doc and reload, you will get '\n'.

Change-Id: Id6780bf6d71a8f0a17c1e6ee7a7dcb4d297446dc
üst 60ce9e98
......@@ -71,7 +71,7 @@ Any SAL_CALL X11Transferable::getTransferData( const DataFlavor& rFlavor )
OUStringToOString( rFlavor.MimeType, RTL_TEXTENCODING_ISO_8859_1 ).getStr(),
OUStringToOString( aString, RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
#endif
aRet <<= aString;
aRet <<= aString.replaceAll("\r\n", "\n");
}
else
aRet <<= aData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment