Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d04592a

Browse files
committed
Rename $PYTHON_VERSION to $PACKAGE_VERSION; this is the version number for
whatever is being documented, not necessarily Python. (These tools are also used for the How-To documents, etc.)
1 parent e435995 commit d04592a

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Doc/perl/python.perl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ sub do_cmd_let{
103103

104104
$DEVELOPER_ADDRESS = '';
105105
$SHORT_VERSION = '';
106-
$PYTHON_VERSION = '';
106+
$PACKAGE_VERSION = '';
107107

108-
sub do_cmd_version{ $PYTHON_VERSION . @_[0]; }
108+
sub do_cmd_version{ $PACKAGE_VERSION . @_[0]; }
109109
sub do_cmd_shortversion{ $SHORT_VERSION . @_[0]; }
110110
sub do_cmd_release{
111111
local($_) = @_;
112-
$PYTHON_VERSION = next_argument();
112+
$PACKAGE_VERSION = next_argument();
113113
return $_;
114114
}
115115

@@ -1024,6 +1024,9 @@ sub fix_font{
10241024
elsif ($font eq 'kbd') {
10251025
$font = 'kbd';
10261026
}
1027+
elsif ($font eq 'programopt') {
1028+
$font = 'b';
1029+
}
10271030
return $font;
10281031
}
10291032

@@ -1270,8 +1273,8 @@ ()
12701273
}
12711274
if ($t_date) {
12721275
$the_title .= "\n<p><strong>$t_date</strong>";
1273-
if ($PYTHON_VERSION) {
1274-
$the_title .= "<br><strong>Release $PYTHON_VERSION</strong>";
1276+
if ($PACKAGE_VERSION) {
1277+
$the_title .= "<br><strong>Release $PACKAGE_VERSION</strong>";
12751278
}
12761279
$the_title .= "</p>"
12771280
}

0 commit comments

Comments
 (0)