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

Skip to content

Commit c113745

Browse files
committed
For verbatim text, don't bounce down a size.
1 parent 56896dd commit c113745

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

Doc/perl/python.perl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,17 +366,15 @@ sub make_str_index_entry{
366366
# (Used with LaTeX2HTML 96.1*)
367367
sub replace_verbatim {
368368
# Modifies $_
369-
local($prefix,$suffix) = ("\n<p><dl><dd><pre><font size=-1>\n",
370-
"</font></pre></dl>");
369+
local($prefix,$suffix) = ("\n<p><dl><dd><pre>\n", "</pre></dl>");
371370
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go;
372371
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/ego; # Raw HTML
373372
}
374373

375374
# (Used with LaTeX2HTML 98.1)
376375
sub replace_verbatim_hook{
377376
# Modifies $_
378-
local($prefix,$suffix) = ("\n<p><dl><dd><font size=-1>",
379-
"</font></dl>");
377+
local($prefix,$suffix) = ("\n<p><dl><dd>", "</dl>");
380378
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/eg;
381379
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go;
382380
# Raw HTML, but replacements may have protected characters

Doc/python.perl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,17 +366,15 @@ sub make_str_index_entry{
366366
# (Used with LaTeX2HTML 96.1*)
367367
sub replace_verbatim {
368368
# Modifies $_
369-
local($prefix,$suffix) = ("\n<p><dl><dd><pre><font size=-1>\n",
370-
"</font></pre></dl>");
369+
local($prefix,$suffix) = ("\n<p><dl><dd><pre>\n", "</pre></dl>");
371370
s/$verbatim_mark(verbatim)(\d+)/$prefix$verbatim{$2}$suffix/go;
372371
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/ego; # Raw HTML
373372
}
374373

375374
# (Used with LaTeX2HTML 98.1)
376375
sub replace_verbatim_hook{
377376
# Modifies $_
378-
local($prefix,$suffix) = ("\n<p><dl><dd><font size=-1>",
379-
"</font></dl>");
377+
local($prefix,$suffix) = ("\n<p><dl><dd>", "</dl>");
380378
s/$math_verbatim_rx/&put_comment("MATH: ".$verbatim{$1})/eg;
381379
s/$verbatim_mark(\w*[vV]erbatim\*?)(\d+)\#/$prefix$verbatim{$2}$suffix/go;
382380
# Raw HTML, but replacements may have protected characters

0 commit comments

Comments
 (0)