]> granicus.if.org Git - python/commitdiff
get_chapter_id(): Separate two aspects of string replacement to allow the
authorFred Drake <fdrake@acm.org>
Tue, 4 Aug 1998 22:07:18 +0000 (22:07 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 4 Aug 1998 22:07:18 +0000 (22:07 +0000)
need for each to vary independently.

Doc/perl/python.perl

index ac1b6278a72a1de77a53b4466c735b4e113b2290..f2a319e9bfe856f4147df313a1f67e27a66888c7 100644 (file)
@@ -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;
 }