File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -346,17 +346,19 @@ sub make_str_index_entry{
346346# (Used with LaTeX2HTML 96.1*)
347347sub replace_verbatim {
348348 # Modifies $_
349- s / $verbatim_mark(verbatim)(\d +)/ <p><dl><dd><font size=\" -1\" ><pre>$verbatim {$2 }<\/ pre><\/ font><\/ dl>/ go ;
349+ local ($prefix ,$suffix ) = (" \n <p><dl><dd><pre><font size=-1>\n " ,
350+ " </font></pre></dl>" );
351+ s / $verbatim_mark(verbatim)(\d +)/ $prefix$verbatim {$2 }$suffix / go ;
350352 s / $verbatim_mark(rawhtml)(\d +)/ $verbatim {$2 }/ ego ; # Raw HTML
351353}
352-
354+
353355# (Used with LaTeX2HTML 98.1)
354356sub replace_verbatim_hook{
355357 # Modifies $_
358+ local ($prefix ,$suffix ) = (" \n <p><dl><dd><font size=-1>" ,
359+ " </font></dl>" );
356360 s / $math_verbatim_rx/ &put_comment("MATH: ".$verbatim {$1 })/ eg ;
357- # s/$verbatim_mark(verbatim\*?)(\d+)#/<PRE>\n$verbatim{$2}\n<\/PRE>/go;
358- s / $verbatim_mark(\w *[vV]erbatim\* ?)(\d +)#/ \n <p><dl><dd><font size=\" -1\" >$verbatim {$2 }<\/ font><\/ dl>\n / go ;
359- # s/$verbatim_mark(rawhtml)(\d+)#/$verbatim{$2}/eg; # Raw HTML
361+ s / $verbatim_mark(\w *[vV]erbatim\* ?)(\d +)\# / $prefix$verbatim {$2 }$suffix / go ;
360362 # Raw HTML, but replacements may have protected characters
361363 s / $verbatim_mark(rawhtml)(\d +)#/ &unprotect_raw_html($verbatim {$2 })/ eg ;
362364 s / $verbatim_mark$keepcomments(\d +)#/ $verbatim {$2 }/ ego ; # Raw TeX
You can’t perform that action at this time.
0 commit comments