Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0384be3b
Commit
0384be3b
authored
Nov 05, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate the "type" attribute on the favicon link
parent
6e2e90d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
Doc/perl/l2hinit.perl
Doc/perl/l2hinit.perl
+13
-3
No files found.
Doc/perl/l2hinit.perl
View file @
0384be3b
...
@@ -661,6 +661,18 @@ sub make_head_and_body($$) {
...
@@ -661,6 +661,18 @@ sub make_head_and_body($$) {
. ($ISO_LANGUAGE ? $ISO_LANGUAGE : $isolanguage) . "\">
\n";
. ($ISO_LANGUAGE ? $ISO_LANGUAGE : $isolanguage) . "\">
\n";
}
}
if ($MY_PARTIAL_HEADER eq '') {
if ($MY_PARTIAL_HEADER eq '') {
my $favicon = '';
if ($FAVORITES_ICON) {
my($myname, $mydir, $myext) = fileparse($FAVORITES_ICON, '\..*');
my $favtype = '';
if ($myext eq '.gif' || $myext eq '.png') {
$myext =~ s/^[.]//;
$favtype = " type=\"image/$myext\"";
}
$favicon = (
"\n
<link
rel=
\"SHORTCUT
ICON
\"
href=
\"$FAVORITES_ICON\""
.
"$
favtype
/>
");
}
$STYLESHEET = $FILE.".css" unless $STYLESHEET;
$STYLESHEET = $FILE.".css" unless $STYLESHEET;
$MY_PARTIAL_HEADER = join('',
$MY_PARTIAL_HEADER = join('',
($DOCTYPE ? $DTDcomment : ''),
($DOCTYPE ? $DTDcomment : ''),
...
@@ -668,9 +680,7 @@ sub make_head_and_body($$) {
...
@@ -668,9 +680,7 @@ sub make_head_and_body($$) {
($BASE ? "\n
<base
href=
\"$BASE\"
/>
" : ''),
($BASE ? "\n
<base
href=
\"$BASE\"
/>
" : ''),
"\n
<link
rel=
\"STYLESHEET\"
href=
\"$STYLESHEET\"
type=
'text/css'
",
"\n
<link
rel=
\"STYLESHEET\"
href=
\"$STYLESHEET\"
type=
'text/css'
",
"
/>
",
"
/>
",
($FAVORITES_ICON
$favicon,
? ("\n
<link
rel=
\"SHORTCUT
ICON
\"
href=
\"$FAVORITES_ICON\"
/>
")
: ''),
($EXTERNAL_UP_LINK
($EXTERNAL_UP_LINK
? ("\n
<link
rel=
'start'
href=
'" . $EXTERNAL_UP_LINK
? ("\n
<link
rel=
'start'
href=
'" . $EXTERNAL_UP_LINK
. ($EXTERNAL_UP_TITLE ?
. ($EXTERNAL_UP_TITLE ?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment