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
0da6b7bc
Commit
0da6b7bc
authored
Nov 05, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- remove some bogus <meta> tags from the document head
- clean up some of the generated markup
parent
1665c622
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
Doc/perl/l2hinit.perl
Doc/perl/l2hinit.perl
+4
-11
No files found.
Doc/perl/l2hinit.perl
View file @
0da6b7bc
...
@@ -170,7 +170,7 @@ sub use_icon($$$) {
...
@@ -170,7 +170,7 @@ sub use_icon($$$) {
my $r = get_my_icon($1);
my $r = get_my_icon($1);
$s =~ s/\
<tex2html
_
[
a-z_
]+
_visible_mark
\
>
/$r/;
$s =~ s/\
<tex2html
_
[
a-z_
]+
_visible_mark
\
>
/$r/;
}
}
$s =~ s/
<
[
aA
]
/<
a
rel=
"$rel"
title=
"$title"
\
n
/;
$s =~ s/
<
[
aA
]
/<
a
rel=
"$rel"
title=
"$title"
\
n
/;
$
s =
~
s
/
HREF=
/
href=
/;
$
s =
~
s
/
HREF=
/
href=
/;
return
$
s
;
return
$
s
;
}
}
...
@@ -432,7 +432,7 @@ sub do_cmd_tableofcontents {
...
@@ -432,7 +432,7 @@ sub do_cmd_tableofcontents {
my($closures, $reopens) = preserve_open_tags();
my($closures, $reopens) = preserve_open_tags();
anchor_label('contents', $CURRENT_FILE, $_); # this is added
anchor_label('contents', $CURRENT_FILE, $_); # this is added
$MY_CONTENTS_PAGE = "$CURRENT_FILE";
$MY_CONTENTS_PAGE = "$CURRENT_FILE";
join('', "
<br
/>
\n
\\tableofchildlinks[off]", $closures
join('', "\\tableofchildlinks[off]", $closures
, make_section_heading($toc_title, 'h2'), $toc_mark
, make_section_heading($toc_title, 'h2'), $toc_mark
, $reopens, $_);
, $reopens, $_);
}
}
...
@@ -725,23 +725,16 @@ sub make_head_and_body($$) {
...
@@ -725,23 +725,16 @@ sub make_head_and_body($$) {
$charset = $CHARSET;
$charset = $CHARSET;
$charset =~ s/_/\-/go;
$charset =~ s/_/\-/go;
}
}
# Remove section number from the title for use in the
#
<meta
name=
'description'
...
>
element in the document head.
my $metatitle = "$title";
$metatitle =~ s/^\d+(\.\d+)*\s*//;
$metatitle = meta_information($metatitle);
$metatitle =~ s/ NAME=/ name=/g;
$metatitle =~ s/ CONTENT=/ content=/g;
join('',
join('',
$MY_PARTIAL_HEADER,
$MY_PARTIAL_HEADER,
$metatitle,
"
<title>
", $title, "
</title>
\n
</head>
\n
<body
$
body
>
");
"
<title>
", $title, "
</title>
\n
</head>
\n
<body
$
body
>
");
}
}
sub replace_morelinks {
sub replace_morelinks {
$more_links =~ s/ REL=/ rel=/g;
$more_links =~ s/ REL=/ rel=/g;
$more_links =~ s/ HREF=/ href=/g;
$more_links =~ s/ HREF=/ href=/g;
$more_links =~ s/
<LINK
/<
link
/
g
;
$
more_links =
~
s
/"
>
/" \/>/g;
$_ =~ s/$more_links_mark/$more_links/e;
$_ =~ s/$more_links_mark/$more_links/e;
}
}
...
...
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