View Single Post
Old 03-02-2024, 05:12 AM   #14
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,467
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by tgiladi View Post
Hi again. I followed one of the suggestions in that other post. I created a custom column built from other columns and added my code to it as a template. Then I replaced the placeholders in the code with values from other custom columns I created, e.g. an image as text coded in Base64. I then checked the option to show with comments and got what I wanted. Now in the book details section I can see both the comments (from the edit metadata screen) AND the other data stored in the new custom column

The challenge now is getting my jacket template to work. For some reason, when I polish a book, there is some strange tag added:
Code:
<pre style="white-space:pre-wrap">
I have to remove it manually to get the jacket to show properly. I hope someone knows how to avoid creation of this tag.
I looked at this and am confused.

That tag is added to if you use a custom comments-type column with the display type set to "plain text", not "html". It isn't added to composite columns (column built from other columns).

However, composite columns have a different problem. All the HTML tags are escaped, causing them to render as text. (I will fix this.)

The question: are you really using a composite column in your jacket? If so, are you really seeing the "white-space" tag? As far as I can see from the calibre code, that isn't possible.
chaley is offline   Reply With Quote