View Single Post
Old 10-13-2024, 02:44 PM   #5
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,511
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
FWIW: I found an example in my test library. Starting out, the raw HTML for a comment is
Code:
<div>05/07/13<div>Dernière page lue : Emplacement 6514 (99%)</div></div>
Looking at the comment in Edit Metadata I see the text shown in this image:
Click image for larger version

Name:	Clipboard01.png
Views:	149
Size:	17.1 KB
ID:	211392

Clicking the HTML source tab I see:
Click image for larger version

Name:	Clipboard02.png
Views:	171
Size:	8.6 KB
ID:	211393

The source HTML is now transformed. <p> tags are added around the date and the nested <div> is changed to <p>.

The Normal view is now:
Click image for larger version

Name:	Clipboard03.png
Views:	158
Size:	17.2 KB
ID:	211394

Adding a space after the date to force the comment to be saved, the raw HTML becomes
Code:
<div>\n<p>05/07/13 </p>\n<p>Dernière page lue : Emplacement 6514 (99%)</p></div>
It seems like the transformation also includes pretty-printing the HTML.
chaley is offline   Reply With Quote