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.sty29
1 files changed, 16 insertions, 13 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..ebec568d503 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}{}
@@ -86,12 +84,12 @@
\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
@@ -244,16 +242,21 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
}
}
-\AtBeginEnvironment{BVerbatim}
-{%
-\LWR@forcenewpage% instead of \preto
-\LWR@atbeginverbatim{0}{bverbatim}%
-}
-\AfterEndEnvironment{BVerbatim}
-{%
-\LWR@afterendverbatim{0}%
-}
+\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