Ask Your Question
1

Remove <style> element when cut from Calc and pasted into another application

asked 2012-03-01 00:27:56 +0200

Enetics gravatar image Enetics
11 1 2

updated 2013-01-20 21:46:01 +0200

qubit gravatar image qubit flag of United States
5816 3 50 43

When I create tables in Libreoffice Calc and paste them into Thunderbird it includes a <style> element which changes the entire message's CSS. The big problem is the "font-size: x-small" at the end. This is what is included when pasting:

<style>body, div, table, thead, tbody, tfoot, tr, th, td, p { font-fa=
mily: "Arial"; font-size: x-small; }</style>

Is there a way to change those attributes so all cut'n'paste is the same, or to not include it altogether.

Specifically, this is a problem in Thunderbird Email. When a table is pasted into an email, the <style> element is included which changes the CSS for the entire email. It can be removed manually, but it is a cumbersome process that I'd rather avoid.

Thanks for any help!

delete close flag offensive retag edit

3 Answers

Sort by » oldest newest most voted
0

answered 2013-02-16 05:27:17 +0200

qubit gravatar image qubit flag of United States
5816 3 50 43

Hi @Enetics,

Per @dsiegel, it looks like multiple people are experiencing this issue. Please file a bug about this problem. The QA team will be happy to help you track down this issue!

Please post a link to any bugs you file in a comment below using the format "fdo#123456".

Thanks!

link delete flag offensive edit
0

answered 2012-03-10 10:48:54 +0200

Florian Reisinger gravatar image Florian Reisinger flag of Austria
209 4 16
http://flosmind.wordpress...

Try to insert the cells with Strg. + Shift + V instead of Strg. V.

link delete flag offensive edit
0

answered 2012-04-11 17:04:56 +0200

dsiegel gravatar image dsiegel
1

I also have had this problem with recent releases of TBird. Using Cntrl+Shift+V as suggested does not work -- it pastes the table without any formatting which renders the presentation of the info useless to the recipients of my daily report.

My workaround is to first type enter a few times, then paste my Libre Office Calc table before the last return character, then delete the return character immediately after the table. This reverts the style of the message and table back to the original stylesheet.

This is an annoying bug that will hopefully be fixed.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-03-01 00:27:56 +0200

Seen: 217 times

Last updated: Feb 16