| Summary: | clipboard protocol is broken: raw text is inserted only | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | student975 <student975> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | courrier.oou.fr.mjk, luuk34 |
| Priority: | medium | ||
| Version: | 4.2.3.3 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
student975
2014-04-19 10:41:01 UTC
I'm not sure if this changed, but pasting using 'Edit/Paste Special' (Ctrl+Shit+V) gives the option to paste with the HTML format preserved. (In reply to comment #1) > I'm not sure if this changed, but pasting using 'Edit/Paste Special' > (Ctrl+Shit+V) gives the option to paste with the HTML format preserved. Exactly, thanks for discovering! Unfortunately I haven't found a way to paste preserving format at one step as far as there are few paste related commands and there isn't a command to insert keeping format. Also there isn't a way to use Linux mouse buffer (say, I must fill in clipboard with Ctrl-C rather to select something with mouse and then insert it into Writer with third mouse button). I just tested in LO 3.6 and it seems that default behaviour changed. In 3.6 a text selected in a browser was pasted in writer keeping the format. In 4.2.3 the format is lost unless doing a special-paste... ;( Maybe an option should be added to the settings, specifying wat default to do when pasting? (but than this is not a bug, but a feature request....) (In reply to comment #4) > In 3.6 a text selected in a browser was pasted in writer keeping the format. > In 4.2.3 the format is lost unless doing a special-paste... ;( Last working version is 4.2.2. > (but than this is not a bug, but a feature request....) Hm.. I see, lost functionality (say, using mouse buffer for inserting formatted text) can be treated as a bug from user's POV and as something else from developer's POV :) Aside jokes, of course, issue status must be set to be handy for developers. Some time between 4.1.3 (I think – I have it no longer installed) and 4.1.6 the default clipboard format for pasting HTML was changed from HTML to plain text ("Unformatierter Text" in German).
Steps to reproduce:
Open Firefox, select text and copy selected text
Open Libreoffice Writer and paste using Ctrl-V (or Edit/Paste)
Result: Plain text is pasted from clipboard
Expected Result: Rich text (HTML) including formatting is pasted from clipboard
This is true for the latest update from openSUSE 12.3 repo Libreoffice Stable (Libreoffice 4.1.6.3? - I am writing this on Windows), and I've also checked it on Windows 7 (64bit) with Libreoffice 4.1.6.2 and Libreoffice 4.2.4.2. Both have the same bug.
As a side effect, I can no longer paste formatted text under Linux by simply middle-clicking in Writer after selecting it in another window since the default clipboard format is plain text.
I've run a few more tests with 4.2.4.2 under Win7/64 and have found the following:
1. Writer: Strg-V pastes plain text, Ctrl-Shift-V offers "HTML" and "HTML (without comments)" as alternatives. Here the new behaviour is just an annoyance, because I have to remember to press Ctrl-Shift-V (Edit/Paste Special) and select HTML every time I paste text.
2. Calc still pastes formatted text by default, but not all attributes: Textcolor YES, Texthighlight NO
3. Impress: Impress ALWAYS pastes plain text, it’s also the only format offered on Invoking "Paste Special".
4. Draw: same as Impress
So this seems a bug with system-wide consequences.
This can't be a feature, I hope: Why should a user have to give up some information (= text formatting) by default?
I think the most sensible would be to have "HTML (without comments)" as the default clipboard format: that way one would lose no important formatting information, but the huge number of HTML comments inserted by many CMS-based websites would not need removing.
|