summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty46
1 files changed, 29 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
index 67ef8867df3..a3fab94f2c6 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
@@ -65,9 +65,7 @@
\renewcommand*{\FV@SingleFrameSep}{}
\def\FV@BUseVerbatim#1{%
- \LWR@atbeginverbatim{0}{verbatim}%
\FV@BVerbatimBegin#1\FV@BVerbatimEnd%
- \LWR@afterendverbatim{0}%
}
\newcommand*{\LWR@FVstyle}{}
@@ -79,26 +77,26 @@
\ifx\FV@LabelBegin\relax\else
\FancyVerbRuleColor{\LWR@FVfindbordercolor}
\LWR@htmltagc{%
- div class="fancyvrblabel" % extra space
- style="color: \LWR@origpound\LWR@tempcolor"%
+ div class=\textquotedbl{}fancyvrblabel\textquotedbl\ % space
+ style=\textquotedbl{}color: \LWR@origpound\LWR@tempcolor\textquotedbl%
}
\LWR@print@textrm{\FV@LabelBegin}% \textrm preserves emdash
\LWR@htmltagc{/div}\LWR@orignewline%
\fi
\fi
-\LWR@atbeginverbatim{0}{verbatim}%
+\LWR@atbeginverbatim{verbatim}%
}
\newcommand*{\LWR@fvendnone}{%
\LWR@traceinfo{fvendnone}%
-\LWR@afterendverbatim{0}%
+\LWR@afterendverbatim%
\LWR@stoppars%
\ifx\FV@LabelPositionBottomLine\relax\else
\ifx\FV@LabelEnd\relax\else
\FancyVerbRuleColor{\LWR@FVfindbordercolor}
\LWR@htmltagc{%
- div class="fancyvrblabel" % extra space
- style="color: \LWR@origpound\LWR@tempcolor"%
+ div class=\textquotedbl{}fancyvrblabel\textquotedbl\ % space
+ style=\textquotedbl{}color: \LWR@origpound\LWR@tempcolor\textquotedbl%
}
\LWR@print@textrm{\FV@LabelEnd}
\LWR@htmltagc{/div}\LWR@orignewline%
@@ -193,7 +191,7 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
\let\FV@LeftListFrame\relax%
\let\FV@RightListFrame\relax%
\let\FV@EndListFrame\LWR@fvendline}
-
+\def\FV@FrameFillLine{}%
\def\FV@Frame@leftline{%
\renewcommand*{\LWR@FVstyle}{%
\LWR@currenttextcolorstyle\LWR@indentHTMLtwo%
@@ -244,16 +242,30 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
}
}
-\AtBeginEnvironment{BVerbatim}
-{%
-\LWR@forcenewpage% instead of \preto
-\LWR@atbeginverbatim{0}{bverbatim}%
+\def\FV@ListProcessLine@i#1{%
+ \ifvoid\@labels\else
+ \hbox to \z@{\kern\@totalleftmargin\box\@labels\hss}%
+ \fi
+ \FV@ListProcessLine{#1}%
}
-\AfterEndEnvironment{BVerbatim}
-{%
-\LWR@afterendverbatim{0}%
-}
+\def\FV@ListProcessLastLine{}
+
+
+\xpretocmd{\FV@BeginVBox}
+ {%
+ \LWR@forcenewpage% instead of \preto
+ \LWR@atbeginverbatim{bverbatim}%
+ }
+ {}
+ {\LWR@patcherror{fancyvrb}{FV@BeginVBox}}
+
+\xapptocmd{\FV@EndVBox}
+ {%
+ \LWR@afterendverbatim%
+ }
+ {}
+ {\LWR@patcherror{fancyvrb}{FV@EndVBox}}
} % \AfterEndPreamble