From: Fred Drake Date: Thu, 11 Nov 2004 05:42:13 +0000 (+0000) Subject: add a comment explaining a particular text transformation X-Git-Tag: v2.4c1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6864832d70e2fbf05cad555269b1423e40ab73b;p=python add a comment explaining a particular text transformation --- diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index a0cb70cc72..48e311563f 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -158,6 +158,9 @@ sub do_cmd_hackscore{ sub codetext($){ my $text = "$_[0]"; + # Make sure that "---" is not converted to "--" later when + # LaTeX2HTML tries converting em-dashes based on the conventional + # TeX font ligatures: $text =~ s/--/-\-/go; return $text; }