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
0c1b253f
Commit
0c1b253f
authored
Oct 29, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add xml:id attributes wherever we generate the IDs (old patch saved up)
parent
048840c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/perl/l2hinit.perl
Doc/perl/l2hinit.perl
+1
-1
Doc/perl/python.perl
Doc/perl/python.perl
+7
-7
No files found.
Doc/perl/l2hinit.perl
View file @
0c1b253f
...
...
@@ -246,7 +246,7 @@ sub get_version_text() {
sub top_navigation_panel() {
return "\n
<div
id=
'top-navigation-panel'
>
\n"
return "\n
<div
id=
'top-navigation-panel'
xml:id=
'top-navigation-panel'
>
\n"
. make_nav_panel()
. "
<hr
/></div>
\n";
}
...
...
Doc/perl/python.perl
View file @
0c1b253f
...
...
@@ -358,7 +358,7 @@ sub do_cmd_pep{
# Save the reference
my
$nstr
=
gen_index_id
("
Python Enhancement Proposals!PEP
$rfcnumber
",
'');
$index
{
$nstr
}
.=
make_half_href
("
$CURRENT_FILE
#
$id
");
return
("
<a class=
\"
rfc
\"
id='
$id
'
\n
"
return
("
<a class=
\"
rfc
\"
id='
$id
'
xml:id='
$id
'
\n
"
.
"
href=
\"
$href
\"
>PEP
$rfcnumber$icon
</a>
"
.
$_
);
}
...
...
@@ -371,7 +371,7 @@ sub do_cmd_rfc{
# Save the reference
my
$nstr
=
gen_index_id
("
RFC!RFC
$rfcnumber
",
'');
$index
{
$nstr
}
.=
make_half_href
("
$CURRENT_FILE
#
$id
");
return
("
<a class=
\"
rfc
\"
id='
$id
'
\n
href=
\"
$href
\"
>
"
return
("
<a class=
\"
rfc
\"
id='
$id
'
xml:id='
$id
'
\n
href=
\"
$href
\"
>
"
.
"
RFC
$rfcnumber$icon
</a>
"
.
$_
);
}
...
...
@@ -525,14 +525,14 @@ sub add_index_entry($$){
sub
new_link_name_info
(){
my
$name
=
"
l2h-
"
.
++
$globals
{'
max_id
'};
my
$aname
=
"
<a id='
$name
'>
";
my
$aname
=
"
<a id='
$name
'
xml:id='
$name
'
>
";
my
$ahref
=
gen_link
(
$CURRENT_FILE
,
$name
);
return
(
$name
,
$ahref
);
}
sub
new_link_info
(){
my
(
$name
,
$ahref
)
=
new_link_name_info
();
my
$aname
=
"
<a id='
$name
'>
";
my
$aname
=
"
<a id='
$name
'
xml:id='
$name
'
>
";
return
(
$name
,
$aname
,
$ahref
);
}
...
...
@@ -762,11 +762,11 @@ sub make_str_index_entry($){
add_index_entry
(
$str
,
$ahref
);
if
(
$str
=~
/^<[a-z]+\b/
)
{
my
$s
=
"
$str
";
$s
=~
s/^<([a-z]+)\b/<$1 id='$name'/
;
$s
=~
s/^<([a-z]+)\b/<$1 id='$name'
xml:id='$name'
/
;
return
$s
;
}
else
{
return
"
<a id='
$name
'>
$str
</a>
";
return
"
<a id='
$name
'
xml:id='
$name
'
>
$str
</a>
";
}
}
...
...
@@ -844,7 +844,7 @@ sub do_cmd_production{
}
$TokenToTargetMapping
{"
$CURRENT_GRAMMAR
:
$token
"}
=
$target
;
return
("
<tr valign=
\"
baseline
\"
>
\n
"
.
"
<td><code><a id='tok-
$token
'>
"
.
"
<td><code><a id='tok-
$token
'
xml:id='tok-
$token
'
>
"
.
"
$token
</a></code></td>
\n
"
.
"
<td> ::= </td>
\n
"
.
"
<td><code>
"
...
...
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