Nicer header format.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3310 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2006-05-26 11:00:33 +00:00
1 parent 66636b1aa1
commit 1d95c24a0d
1 file changed
+13 -9
+13 -9
View File
@@ -404,16 +404,20 @@ sub prints ($) # print seperator w/ given text
}
}
sub printh ($) # print header w/ given text
sub printh ($$) # print header w/ given text
{
my ($label) = @_;
my ($header, $sub) = @_;
if ($opt_html) {
$label =~ s/</\&lt;/sg;
$label =~ s/>/\&gt;/sg;
$label =~ s/\n/<br>\n/sg;
print "<h1>$label</h1>\n";
$header =~ s/</\&lt;/sg;
$header =~ s/>/\&gt;/sg;
$header =~ s/\n/<br>\n/sg;
$sub =~ s/</\&lt;/sg;
$sub =~ s/>/\&gt;/sg;
$sub =~ s/\n/<br>\n/sg;
print "<h1>$header</h1>\n";
print "<p>$sub</p>\n";
} else {
print "\n$label\n";
print "\n$header\n$sub\n";
}
}
@@ -1066,8 +1070,8 @@ if ($opt_body)
"</head><body>\n";
}
printh 'PC DIMM Serial Presence Detect Tester/Decoder
By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner,
printh 'Memory Serial Presence Detect Decoder',
'By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner,
Jean Delvare and others
Version 2.10.1';