I'm having trouble with the *Copy as HTML* menu item in GnomeTerminal in Fedora 38 beta.
When I paste the result into a Google doc, the result is HTML code.
When I paste the result into a Libre Office Writer doc, the result is an error dialog saying "Requested clipboard format is not available."
A workaround I found is to execute the following after selecting the *Copy as HTML* menu item:
xclip -sel c -t 'text/plain' -o | xclip -sel c -t 'text/html'
Anybody else have this problem? I'm wondering if it is a problem with my particular installation.
On Sun, Apr 9, 2023 at 8:11 AM Robin A. Meade robin.a.meade@gmail.com wrote:
I'm having trouble with the *Copy as HTML* menu item in GnomeTerminal in Fedora 38 beta.
When I paste the result into a Google doc, the result is HTML code.
When I paste the result into a Libre Office Writer doc, the result is an error dialog saying "Requested clipboard format is not available."
A workaround I found is to execute the following after selecting the *Copy as HTML* menu item:
xclip -sel c -t 'text/plain' -o | xclip -sel c -t 'text/html'
Anybody else have this problem? I'm wondering if it is a problem with my particular installation.
I can confirm this. When I play with `wl-paste -l` and `wl-paste -t mimetype`, it seems that gnome-terminal offers 'text/html' mimetype, but it's empty. The html tags are actually present in the 'text/plain' content. When I copy something into the clipboard in Firefox, it correctly populates both 'text/html' and 'text/plain' with appropriate content. So I think the problem is in gnome-terminal. Can you please report a problem here? https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues
Thanks!
I filed issue#7975:
[Copy as HTML offers 'text/html' mimetype, but it's empty, and 'text/plain' contains HTML tags]( https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7975 )