cosmetic: FONT-tag for "--pagetitle-links" option of bbgen

Thomas Eckert eckert.thomas at gmx.net
Wed Mar 21 11:25:29 CET 2007


Hi all,

if "--pagetitle-links" is used in BBGENOPTS to make the page title link to
(sub-) pages too the color of the created link is not set correctly.
This results in the link showing up with the default link color and getting
the "visited-color" after the first click on it. (tested with firefox-2.0.0.2,
firefox-1.0.2

The attached trivial patch (against vanilla 4.2.0) fixes this by adding the
needed FONT-tags.

Thanks for hobbit!

          Thomas

--
      "The inside of my head was exploding with fireworks. Fortunately,
      my last thought turned out the lights when it left."
                 --- Calvin
-------------- next part --------------
diff -Nur hobbit-4.2.0.org/bbdisplay/pagegen.c hobbit-4.2.0/bbdisplay/pagegen.c
--- hobbit-4.2.0.org/bbdisplay/pagegen.c	2006-08-09 22:09:54.000000000 +0200
+++ hobbit-4.2.0/bbdisplay/pagegen.c	2007-03-21 09:50:32.000000000 +0100
@@ -759,7 +759,7 @@
 				fprintf(output, "<A HREF=\"%s\">%s</A>", linkurl, p->title);
 			}
 			else if (pagetitlelinks) {
-				fprintf(output, "<A HREF=\"%s\">%s</A>", cleanurl(pagelink), p->title);
+				fprintf(output, "<A HREF=\"%s\"><FONT %s>%s</FONT></A>", cleanurl(pagelink), xgetenv("MKBBROWFONT"), p->title);
 			}
 			else {
 				fprintf(output, "%s", p->title);


More information about the Xymon mailing list