View Single Post
Old 02-15-2024, 11:33 AM   #9284
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,012
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by veviara View Post
I'm trying to customise my logpage and I've run into a problem:
I've edited logpage_entry such that there's a line break after each entry:

Code:
logpage_entry:<b>${label}:</b> <span id="${id}">${value}</span><br />
But now all entries are included every time regardless of whether they have changed or not.

...

Upon closer inspection of the produced files I'm thinking that it probably has something to do with the fact that there are no line breaks in the html file when I use my custom entry. So now my questions are:
You are correct.

Rather than parse the HTML entirely, FFF is doing very basic string searches for '<span id="%s">'%entry and '</span>\n'

I'll put out a test version shortly that removes the unnecessary \n.

FYI, To get more spacing in the HTML you can do this:
Code:
logpage_entry:
 <b>${label}:</b> <span id="${id}">${value}</span>
 <br/>
Note the leading spaces. This version will work correctly with the existing released code.

I think this may be the first time I've heard of anyone--other than me--using the log file feature.
JimmXinu is offline   Reply With Quote