mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
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:
1 parent
66636b1aa1
commit
1d95c24a0d
1 file changed
+13
-9
@@ -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/</\</sg;
|
||||
$label =~ s/>/\>/sg;
|
||||
$label =~ s/\n/<br>\n/sg;
|
||||
print "<h1>$label</h1>\n";
|
||||
$header =~ s/</\</sg;
|
||||
$header =~ s/>/\>/sg;
|
||||
$header =~ s/\n/<br>\n/sg;
|
||||
$sub =~ s/</\</sg;
|
||||
$sub =~ s/>/\>/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';
|
||||
|
||||
|
||||
Reference in new issue
Block a user