Quote:
Originally Posted by veviara
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.