summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/listings.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/listings.4ht28
1 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/listings.4ht b/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
index 57ebe0c02ea..16bd5d4c6c3 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% listings.4ht 2006-12-01-16:02 %
-% Copyright (C) 2001--2006 Eitan M. Gurari %
+% listings.4ht 2007-01-03-21:02 %
+% Copyright (C) 2001--2007 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
@@ -24,10 +24,15 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2006-12-01-16:02}
+\immediate\write-1{version 2007-01-03-21:02}
\append:defII\lst@EnterMode{%
- \pend:def\lsthk@EveryLine{\c:listings}%
+ \ifx \lsthk:EveryLine\:UnDef
+ \let\lsthk:EveryLine\lsthk@EveryLine
+ \fi
+ \ifx \lsthk:EveryLine\lsthk@EveryLine
+ \pend:def\lsthk@EveryLine{\c:listings}%
+ \fi
\append:def\lsthk@EveryPar{\d:listings}%
\a:listings\bgroup \aftergroup\lst:EnterMode }
\def\lst:EnterMode{\b:listings\egroup}
@@ -50,8 +55,19 @@
\global\advance\lst@newlines\m@ne
\lst@newlinetrue
}%
-\pend:defI\lst@InputListing{\a:lstinputlisting}
-\append:defI\lst@InputListing{\b:lstinputlisting}
+\def\lst@InputListing#1{%
+ \begingroup
+ \lsthk@PreSet \gdef\lst@intname{#1}%
+ \expandafter\lstset\expandafter{\lst@set}%
+ \lsthk@DisplayStyle
+ \catcode\active=\active
+ \lst@Init\relax \let\lst@gobble\z@
+ \lst@SkipToFirst
+ \lst@ifprint \def\lst@next{\input{#1}}%
+ \else \let\lst@next\@empty \fi
+ \a:lstinputlisting \lst@next \b:lstinputlisting
+ \lst@DeInit
+ \endgroup}
\NewConfigure{lstinputlisting}{2}
\def\lst@Kern#1{%
\setbox\z@\hbox{{\lst@currstyle{\kern#1}}}%