diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index ac1b6278a72..f2a319e9bfe 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/(\d+)<\/SPAN>\./\1/; + $id =~ s/(\d+)<\/SPAN>/\1/; + $id =~ s/\.//; return $id; }