Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b73bc31

Browse files
committed
Removed partially broken {verbatim} support.
1 parent ee60191 commit b73bc31

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

Doc/perl/python.perl

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -444,31 +444,6 @@ sub make_str_index_entry{
444444
"$aname$str</a>";
445445
}
446446

447-
# Changed from the stock version to indent {verbatim} sections,
448-
# and make them smaller, to better match the LaTeX version:
449-
450-
# (Used with LaTeX2HTML 96.1*)
451-
sub replace_verbatim {
452-
# Modifies $_
453-
my($prefix,$suffix) = ("\n<p><dl><dd><pre>\n", "</pre></dl>");
454-
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go;
455-
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/ego; # Raw HTML
456-
}
457-
458-
# (Used with LaTeX2HTML 98.1)
459-
# The HTML this produces is bad; the <PRE> is on the outside of the <dl>,
460-
# but I haven't found a workaround yet.
461-
sub replace_verbatim_hook{
462-
# Modifies $_
463-
my($prefix,$suffix) = ("\n<p><dl><dd>", "</dl>");
464-
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/eg;
465-
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go;
466-
# Raw HTML, but replacements may have protected characters
467-
s/$verbatim_mark(rawhtml)(\d+)#/&unprotect_raw_html($verbatim{$2})/eg;
468-
s/$verbatim_mark$keepcomments(\d+)#/$verbatim{$2}/ego; # Raw TeX
469-
s/$unfinished_mark$keepcomments(\d+)#/$verbatim{$2}/ego; # Raw TeX
470-
}
471-
472447
sub do_env_cfuncdesc{
473448
local($_) = @_;
474449
my($return_type,$function_name,$arg_list,$idx) = ('', '', '', '');

0 commit comments

Comments
 (0)