summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-11-11 05:42:13 (GMT)
committerFred Drake <fdrake@acm.org>2004-11-11 05:42:13 (GMT)
commitc6864832d70e2fbf05cad555269b1423e40ab73b (patch)
treebe63f2b9ead393d26aebc00f7ffc8b322c099940 /Doc/perl
parent758f5ea4194a2aa6d7d01c47d1558b45ec3f5fc2 (diff)
downloadcpython-c6864832d70e2fbf05cad555269b1423e40ab73b.zip
cpython-c6864832d70e2fbf05cad555269b1423e40ab73b.tar.gz
cpython-c6864832d70e2fbf05cad555269b1423e40ab73b.tar.bz2
add a comment explaining a particular text transformation
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/python.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index a0cb70c..48e3115 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/--/-\&#45;/go;
return $text;
}