View Single Post
Old 03-30-2020, 03:40 PM   #4011
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
I've done it exactly like it is, even just a copy of the column from one to another (which I would think couldn't change anything, when I copy it from the HTML tab) and it still wipes it clean.
Fine. You've successfully nagged me into looking into this more.

But you're not going to like what I've found.

You can not manually modify 'Saved Metadata Column' at all anymore because Calibre changes the HTML when it shows it to you to edit. Calibre changes the HTML, discarding the tags/attributes that FFF uses to parse it.

Looking in the Calibre code, it does a ton of 'clean up' on HTML in comments/long text columns before presenting it to the user. Most of that is apparently to remove a ton of additional tagging and style that was also added somewhere along the way. Code seems to suggest it comes from Qt?

There's some code in calibre's comments_editor.py that will skip cleanup if the tag <meta name="calibre-dont-sanitize"> is included, but when I try to include that, it's stripped out before getting to that point, along with the <div class="metadata"> tags FFF is relying on.

So, short answer: You can't edit 'Saved Metadata Column' anymore because Calibre changes the HTML when you do.
JimmXinu is online now   Reply With Quote