summaryrefslogtreecommitdiffstats
path: root/Doc/perl/python.perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-08-04 22:07:18 (GMT)
committerFred Drake <fdrake@acm.org>1998-08-04 22:07:18 (GMT)
commit45f2601cf38b11647df3a3dd45465d4c57c77dfc (patch)
treec26938bc48c674a332447b63fe5a410f4e6d8db6 /Doc/perl/python.perl
parentf54556efae30d39f8481b7098322fb56ff114833 (diff)
downloadcpython-45f2601cf38b11647df3a3dd45465d4c57c77dfc.zip
cpython-45f2601cf38b11647df3a3dd45465d4c57c77dfc.tar.gz
cpython-45f2601cf38b11647df3a3dd45465d4c57c77dfc.tar.bz2
get_chapter_id(): Separate two aspects of string replacement to allow the
need for each to vary independently.
Diffstat (limited to 'Doc/perl/python.perl')
-rw-r--r--Doc/perl/python.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index ac1b627..f2a319e 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -883,7 +883,8 @@ require SynopsisTable;
sub get_chapter_id(){
my $id = do_cmd_thechapter('');
- $id =~ s/<SPAN CLASS="arabic">(\d+)<\/SPAN>\./\1/;
+ $id =~ s/<SPAN CLASS="arabic">(\d+)<\/SPAN>/\1/;
+ $id =~ s/\.//;
return $id;
}