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
20ee2065
Commit
20ee2065
authored
Feb 26, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for some of the newer commands, a little cleanup.
parent
46c86bbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
Doc/myformat.perl
Doc/myformat.perl
+28
-6
No files found.
Doc/myformat.perl
View file @
20ee2065
...
...
@@ -21,6 +21,30 @@ sub do_cmd_NULL{ join('', '<tt>NULL</tt>', @_[0]); }
sub
do_cmd_e
{
local
(
$_
)
=
@_
;
'
\
'
.
$_
;
}
$AUTHOR_ADDRESS
=
'
(not specified)
';
$PYTHON_VERSION
=
'
(not specified)
';
sub
do_cmd_version
{
$PYTHON_VERSION
.
@_
[
0
];
}
sub
do_cmd_release
{
local
(
$_
)
=
@_
;
s/$any_next_pair_pr_rx//
;
$PYTHON_VERSION
=
"
$2
";
$_
;
}
sub
do_cmd_authoraddress
{
local
(
$_
)
=
@_
;
s/$any_next_pair_pr_rx//
;
$AUTHOR_ADDRESS
=
"
$2
";
$_
;
}
sub
do_cmd_hackscore
{
local
(
$_
)
=
@_
;
s/$any_next_pair_pr_rx/_/
;
$_
;
}
sub
do_cmd_optional
{
local
(
$_
)
=
@_
;
s/$any_next_pair_pr_rx/<\/var><big>\[<\/big><var>\2<\/var><big>\]<\/big><var>/
;
...
...
@@ -258,9 +282,9 @@ sub do_cmd_refstmodindex{ &ref_module_index_helper('standard', @_); }
sub
do_cmd_nodename
{
&
do_cmd_label
(
@_
);
}
sub
init_myformat
{
# XXX need some way for this to be called after &initialise;
$anchor_mark
=
'';
$icons
{'
anchor_mark
'}
=
'';
# XXX need some way for this to be called after &initialise;
???
#
$anchor_mark = '';
#
$icons{'anchor_mark'} = '';
# <<2>>...<<2>>
$any_next_pair_rx3
=
"
$O
(
\\
d+)
$C
([
\\
s
\\
S]*)
$O
\\
3
$C
";
$any_next_pair_rx5
=
"
$O
(
\\
d+)
$C
([
\\
s
\\
S]*)
$O
\\
5
$C
";
...
...
@@ -276,9 +300,7 @@ sub init_myformat{
&
init_myformat
;
sub
get_indexsubitem
{
local
(
$result
)
=
$INDEX_SUBITEM
;
#print "\nget_indexsubitem ==> $result\n";
$result
?
"
$result
"
:
'';
$INDEX_SUBITEM
?
"
$INDEX_SUBITEM
"
:
'';
}
# similar to make_index_entry(), but includes the string in the result
...
...
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