After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 308387 - Export html into cut-and-paste-buffer
Export html into cut-and-paste-buffer
Status: RESOLVED DUPLICATE of bug 143084
Product: Gnumeric
Classification: Applications
Component: import/export HTML
unspecified
Other Linux
: Low enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-06-20 12:35 UTC by Hadmut Danisch
Modified: 2009-05-16 03:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hadmut Danisch 2005-06-20 12:35:07 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
Comment 1 Jon Kåre Hellan 2005-07-06 09:33:09 UTC
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.
Comment 2 Jon Kåre Hellan 2006-10-17 11:59:31 UTC
See also 34632
Comment 3 Morten Welinder 2009-05-16 03:06:47 UTC
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 ***