From: Fred Drake Date: Wed, 4 Mar 1998 05:30:49 +0000 (+0000) Subject: Comment out the attempt to get index-related stuff processed in the right X-Git-Tag: v1.5.1~515 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2da947af878842ab8676e48a26d1aeb25c082e3e;p=python Comment out the attempt to get index-related stuff processed in the right order. LaTeX2HTML just doesn't do things the same way as LaTeX, and this wasn't the fix. Simplify the generated HTML for \file{}. For \samp{}, use "..." instead of `...'; many fonts make that look pretty bad. ;-( --- diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 73c917ee02..2ea09e6476 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -317,28 +317,28 @@ sub init_myformat{ $any_next_pair_pr_rx_5 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\5$CP"; $any_next_pair_pr_rx_7 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\7$CP"; $any_next_pair_pr_rx_9 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\9$CP"; - if (defined &process_commands_wrap_deferred) { - &process_commands_wrap_deferred(<" markup will use courier (or whatever # the font is for ). local($_) = @_; - s/$any_next_pair_pr_rx/`\2<\/font><\/tt>'/; + s/$any_next_pair_pr_rx/\"\2<\/tt>\"/; $_; } sub do_cmd_samp{ local($_) = @_; - s/$any_next_pair_pr_rx/`\2<\/tt>'/; + s/$any_next_pair_pr_rx/\"\2<\/tt>\"/; $_; } diff --git a/Doc/python.perl b/Doc/python.perl index 73c917ee02..2ea09e6476 100644 --- a/Doc/python.perl +++ b/Doc/python.perl @@ -317,28 +317,28 @@ sub init_myformat{ $any_next_pair_pr_rx_5 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\5$CP"; $any_next_pair_pr_rx_7 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\7$CP"; $any_next_pair_pr_rx_9 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\9$CP"; - if (defined &process_commands_wrap_deferred) { - &process_commands_wrap_deferred(<" markup will use courier (or whatever # the font is for ). local($_) = @_; - s/$any_next_pair_pr_rx/`\2<\/font><\/tt>'/; + s/$any_next_pair_pr_rx/\"\2<\/tt>\"/; $_; } sub do_cmd_samp{ local($_) = @_; - s/$any_next_pair_pr_rx/`\2<\/tt>'/; + s/$any_next_pair_pr_rx/\"\2<\/tt>\"/; $_; }