summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-01-09 01:47:03 +0000
committerKarl Berry <karl@freefriends.org>2007-01-09 01:47:03 +0000
commit7e6a400b101b2d20930213dfd0b8e90969e3da1d (patch)
tree3b394627fb268561f36387333163e5af1368e1b3 /Master/texmf-dist/tex/generic/tex4ht/listings.4ht
parentac54b3e8d8a00592eba61f92e43c8dadae2dd432 (diff)
tex4ht 1.0.2007_01_08_1711
git-svn-id: svn://tug.org/texlive/trunk@3262 c570f23f-e606-0410-a88d-b1316a301751
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}}}%