summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-ooffice.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-18 03:00:49 +0000
committerNorbert Preining <norbert@preining.info>2021-09-18 03:00:49 +0000
commitfb07ccd098248248795fb851a3a6479ecafaaa47 (patch)
treee71e612d8d6e10042e2186172639dd7f8228f9c9 /support/TeX4ht/source/tex4ht-ooffice.tex
parentaefe346b16163823efeac108a7da42e91e53e5c7 (diff)
CTAN sync 202109180300
Diffstat (limited to 'support/TeX4ht/source/tex4ht-ooffice.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-ooffice.tex32
1 files changed, 21 insertions, 11 deletions
diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex
index 71b3105795..1eac506543 100644
--- a/support/TeX4ht/source/tex4ht-ooffice.tex
+++ b/support/TeX4ht/source/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 977 2021-09-09 13:53:34Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 983 2021-09-17 14:27:15Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -10446,15 +10446,21 @@ Y{0178}\i{00EF}%
\ConfigureEnv{lstlisting}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<!--l. \the\inputlineno lstlisting-->}%
- \HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
- \bgroup \special{t4ht@(}%
+ % \HCode{}%
+ \bgroup %
+ \gdef\start:LstLn{%
+ \ifvmode\IgnorePar\fi\EndP\HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
+ \ht:special{t4ht@(}\ttfamily%
+ \gdef\start:LstLn{\HCode{<text:s/><text:line-break/>}}}
+ \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</text:p>}}%
\Configure{listings}
{{\everypar{}\leavevmode}}
{{\everypar{}\leavevmode}}
- {\HCode{<text:s/><text:line-break/>}}{}%
+ {\start:LstLn}{}%
}
- {\special{t4ht@)}\egroup
- \ifvmode \IgnorePar\fi \EndP \HCode{</text:p>}\par}
+ {\ht:special{t4ht@)}\egroup
+ % \ifvmode \IgnorePar\fi \EndP \HCode{</text:p>}\par}
+ \par}
{} {}
>>>
@@ -10462,16 +10468,20 @@ Y{0178}\i{00EF}%
\Configure{lstinputlisting}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<!--l. \the\inputlineno lstinputlisting-->}%
- \HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
- \bgroup \tt \special{t4ht@(}%
+ % \HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
+ \bgroup%
+ \gdef\start:LstLn{%
+ \ifvmode\IgnorePar\fi\EndP\HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
+ \ht:special{t4ht@(}\ttfamily%
+ \gdef\start:LstLn{\HCode{<text:s/><text:line-break/>}}}
+ \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</text:p>}}%
\Configure{listings}
{{\everypar{}\leavevmode}}
{{\everypar{}\leavevmode}}
- {\HCode{<text:s/><text:line-break/>}}
+ {\start:LstLn}
{\HCode{<text:line-break/>}}%
}
- {\special{t4ht@)}\egroup
- \ifvmode \IgnorePar\fi \EndP \HCode{</text:p>}\par}
+ {\special{t4ht@)}\egroup\par}
>>>