diff options
author | Fred Drake <fdrake@acm.org> | 1998-08-04 22:07:18 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-08-04 22:07:18 (GMT) |
commit | 45f2601cf38b11647df3a3dd45465d4c57c77dfc (patch) | |
tree | c26938bc48c674a332447b63fe5a410f4e6d8db6 | |
parent | f54556efae30d39f8481b7098322fb56ff114833 (diff) | |
download | cpython-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.
-rw-r--r-- | Doc/perl/python.perl | 3 |
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; } |