GNOME Bugzilla – Bug 308387
Export html into cut-and-paste-buffer
Last modified: 2009-05-16 03:06:47 UTC
Hi, the "save as HTML fragment" function is nice, but would be even better if - it was possible to write the HTML fragment directly into the cut-and-paste-buffer instead of files only, - it was more configurable, e.g. choose the table properties like col spacing or classes. regards Hadmut
Here's a short summary of how the clipboard works: When you paste from clipboard, the app asks the owner of the clipboard what formats it is able to supply, and chooses the one it likes best. The clipboard owner then sends data in that format to the requestor. When you copy or paste to clipboard, the app just tells the system that it now is responsible for handling clipboard requests. html is in the list of formats gnumeric is willing to send over the clipboard. If your app asks for html, it will get it. If you want to see for yourself, and you use emacs, you can copy a range in gnumeric to clipboard, enter the *scratch* buffer in emacs, and write (x-get-selection 'CLIPBOARD 'text/html)<ctrl+j> We send a valid html document over clipboard, since there is no standard for html fragments. Neither syntax nor mime type. There has been some debate about this, however. See bug 143084. A user interface for explicitly controlling export to clipboard would have to be something like "Cut special"/"Copy special". I think this would make the UI more confusing than it already is and bring little benefit.
See also 34632
Looks like a dupe of bug 308387. That doesn't bring us closer to solving the issue, though. *** This bug has been marked as a duplicate of 143084 ***