Comment 3 for bug 526997

Revision history for this message
Torben Nielsen (tkn-torbennielsen) wrote :

I think the behavior should be

if(title contains body)
   print only title
else
  print both

Also, my fix is incorrect. It should read

$body1 = '' if (rindex ($title,$body1) >= 0);

and this can be used as a replacement for existing line.

This however doesn't solve the problem in all cases. Specifically, when the title contains the body, but this is not immediately evident because of differing HTML tags (see attached example). I'm not experienced enough to create a patch for this, but I'm certain that it's possible.

The argument for considering the body to be contained in the title in this case, is that this is in fact the case in the output from xscreensaver-text where HTML is parsed or stripped accordingly.