summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-05 17:00:55 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-05 17:00:55 (GMT)
commitc113745498d3547b012b19463b58050875d9bfd1 (patch)
tree363f6b61d4e25f00b0f688391b20c60b0e212bea /Doc/perl
parent56896dd5bb92e1c9a680d2b5b06d33c18786f8c0 (diff)
downloadcpython-c113745498d3547b012b19463b58050875d9bfd1.zip
cpython-c113745498d3547b012b19463b58050875d9bfd1.tar.gz
cpython-c113745498d3547b012b19463b58050875d9bfd1.tar.bz2
For verbatim text, don't bounce down a size.
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/python.perl6
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 2ea09e6..f7531a5 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -366,8 +366,7 @@ sub make_str_index_entry{
# (Used with LaTeX2HTML 96.1*)
sub replace_verbatim {
# Modifies $_
- local($prefix,$suffix) = ("\n<p><dl><dd><pre><font size=-1>\n",
- "</font></pre></dl>");
+ local($prefix,$suffix) = ("\n<p><dl><dd><pre>\n", "</pre></dl>");
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go;
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/ego; # Raw HTML
}
@@ -375,8 +374,7 @@ sub replace_verbatim {
# (Used with LaTeX2HTML 98.1)
sub replace_verbatim_hook{
# Modifies $_
- local($prefix,$suffix) = ("\n<p><dl><dd><font size=-1>",
- "</font></dl>");
+ local($prefix,$suffix) = ("\n<p><dl><dd>", "</dl>");
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/eg;
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go;
# Raw HTML, but replacements may have protected characters