View Single Post
Old 09-16-2022, 10:56 AM   #4
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by 01100001 View Post
So what I was already doing (as seen in the first example). It wasn't working because Calibre uses QT-specific CSS property for indentation -qt-list-indent.

Thanks to this link @kovidgoyal had shared in an older post showing all supported HTML Tags & Attributes and CSS Properties & Selectors: https://doc.qt.io/qt-5/richtext-html-subset.html

That clears things up. I will have to find some other way to sort my issues.

Thank you!

Edit to clarify: The CSS property user-select isn't supported.
Having failed with CSS I made it work using a table instead of an unordered list.
Code:
program:
	j = '';
	for i in $tags:
		j = j & '<tr><td>&bull;</td><td><a href="' & re(i, '"', '&quot;') & '">' & i & '</a></td></tr>'
	rof;
	if j then '<table>' & j & '</table>'else '' fi;
EDIT: Forgot the </tr> on the original template. Corrected.
Attached Thumbnails
Click image for larger version

Name:	Clipboard02.jpg
Views:	462
Size:	15.6 KB
ID:	196579  

Last edited by chaley; 09-16-2022 at 11:09 AM. Reason: Forgot the </tr> on the original template. Corrected.
chaley is offline   Reply With Quote