Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0c1b253f
Kaydet (Commit)
0c1b253f
authored
Eki 29, 2004
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add xml:id attributes wherever we generate the IDs (old patch saved up)
üst
048840c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
l2hinit.perl
Doc/perl/l2hinit.perl
+1
-1
python.perl
Doc/perl/python.perl
+7
-7
No files found.
Doc/perl/l2hinit.perl
Dosyayı görüntüle @
0c1b253f
...
@@ -246,7 +246,7 @@ sub get_version_text() {
...
@@ -246,7 +246,7 @@ sub get_version_text() {
sub top_navigation_panel() {
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()
. make_nav_panel()
. "
<hr
/></div>
\n";
. "
<hr
/></div>
\n";
}
}
...
...
Doc/perl/python.perl
Dosyayı görüntüle @
0c1b253f
...
@@ -358,7 +358,7 @@ sub do_cmd_pep{
...
@@ -358,7 +358,7 @@ sub do_cmd_pep{
# Save the reference
# Save the reference
my
$nstr
=
gen_index_id
(
"Python Enhancement Proposals!PEP $rfcnumber"
,
''
);
my
$nstr
=
gen_index_id
(
"Python Enhancement Proposals!PEP $rfcnumber"
,
''
);
$index
{
$nstr
}
.=
make_hal
f_href
(
"$CURRENT_FILE#$id"
);
$index
{
$nstr
}
.=
make_hal
f_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>"
.
$_
);
.
"href=\"$href\">PEP $rfcnumber$icon</a>"
.
$_
);
}
}
...
@@ -371,7 +371,7 @@ sub do_cmd_rfc{
...
@@ -371,7 +371,7 @@ sub do_cmd_rfc{
# Save the reference
# Save the reference
my
$nstr
=
gen_index_id
(
"RFC!RFC $rfcnumber"
,
''
);
my
$nstr
=
gen_index_id
(
"RFC!RFC $rfcnumber"
,
''
);
$index
{
$nstr
}
.=
make_hal
f_href
(
"$CURRENT_FILE#$id"
);
$index
{
$nstr
}
.=
make_hal
f_href
(
"$CURRENT_FILE#$id"
);
return
(
"<a class=\"rfc\" id='$id'\nhref=\"$href\">"
return
(
"<a class=\"rfc\" id='$id'
xml:id='$id'
\nhref=\"$href\">"
.
"RFC $rfcnumber$icon</a>"
.
$_
);
.
"RFC $rfcnumber$icon</a>"
.
$_
);
}
}
...
@@ -525,14 +525,14 @@ sub add_index_entry($$){
...
@@ -525,14 +525,14 @@ sub add_index_entry($$){
sub
new_link_name_info
(){
sub
new_link_name_info
(){
my
$name
=
"l2h-"
.
++
$globals
{
'max_id'
};
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
);
my
$ahref
=
gen_link
(
$CURRENT_FILE
,
$name
);
return
(
$name
,
$ahref
);
return
(
$name
,
$ahref
);
}
}
sub
new_link_info
(){
sub
new_link_info
(){
my
(
$name
,
$ahref
)
=
new_link_name_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
);
return
(
$name
,
$aname
,
$ahref
);
}
}
...
@@ -762,11 +762,11 @@ sub make_str_index_entry($){
...
@@ -762,11 +762,11 @@ sub make_str_index_entry($){
add_index_entry
(
$str
,
$ahref
);
add_index_entry
(
$str
,
$ahref
);
if
(
$str
=~
/^<[a-z]+\b/
)
{
if
(
$str
=~
/^<[a-z]+\b/
)
{
my
$s
=
"$str"
;
my
$s
=
"$str"
;
$s
=~
s/^<([a-z]+)\b/<$1 id='$name'/
;
$s
=~
s/^<([a-z]+)\b/<$1 id='$name'
xml:id='$name'
/
;
return
$s
;
return
$s
;
}
}
else
{
else
{
return
"<a id='$name'>$str</a>"
;
return
"<a id='$name'
xml:id='$name'
>$str</a>"
;
}
}
}
}
...
@@ -844,7 +844,7 @@ sub do_cmd_production{
...
@@ -844,7 +844,7 @@ sub do_cmd_production{
}
}
$TokenToTargetMapping
{
"$CURRENT_GRAMMAR:$token"
}
=
$target
;
$TokenToTargetMapping
{
"$CURRENT_GRAMMAR:$token"
}
=
$target
;
return
(
"<tr valign=\"baseline\">\n"
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"
.
"$token</a></code></td>\n"
.
" <td> ::= </td>\n"
.
" <td> ::= </td>\n"
.
" <td><code>"
.
" <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