diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex index ede8404fffc..455078e9df1 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1073 2022-02-06 19:29:41Z michal_h21 $ +% $Id: tex4ht-html4.tex 1080 2022-02-16 21:37:32Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -15269,12 +15269,12 @@ Configuration for the inline code \gHAdvance\listingN by 1 \HCode{<!--l. \the\inputlineno-->}% \gdef\start:LstLn{% - \HCode{<div class="lstlisting" id="listing-\listingN">}% + \HCode{<pre class="lstlisting" id="listing-\listingN">}% \gdef\start:LstLn{|<nbsp|>\HCode{<br />\Hnewline}}} \bgroup% % we put the closing </div> here in order to support floating listings % https://tex.stackexchange.com/a/615703/2891 - \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}% + \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</pre>}}% \Configure{listings} {{\everypar{}\leavevmode}} {{\everypar{}\leavevmode}} @@ -15284,7 +15284,7 @@ Configuration for the inline code {\egroup\par} {} {} \Css{.lstlisting .label{margin-right:0.5em; }} -\Css{div.lstlisting{font-family: monospace,monospace; white-space: nowrap; +\Css{pre.lstlisting{font-family: monospace,monospace; white-space: nowrap; margin-top:0.5em; margin-bottom:0.5em; }} >>> @@ -15293,7 +15293,7 @@ Configuration for the inline code \Configure{lstinputlisting} {\ifvmode \IgnorePar\fi \EndP \HCode{<!--l. \the\inputlineno-->}% - \HCode{<div class="lstinputlisting">}% + \HCode{<pre class="lstinputlisting">}% \bgroup \tt %\special{t4ht@(}% \Configure{listings} {{\everypar{}\leavevmode}} @@ -15304,8 +15304,8 @@ Configuration for the inline code } {%\special{t4ht@)} \egroup - \ifvmode \IgnorePar\fi \EndP \HCode{</div>}\par} -\Css{div.lstinputlisting{ + \ifvmode \IgnorePar\fi \EndP \HCode{</pre>}\par} +\Css{pre.lstinputlisting{ font-family: monospace,monospace; white-space: nowrap; }} @@ -19752,10 +19752,12 @@ changes. \:CheckOption{p-width} \if:Option |<10 em constant|> \Configure{HColWidth} - {\tmp:dim=\HColWidth \divide\tmp:dim by \ten:Em\relax + {\ifnum\HRow=1% output CSS only on the first row, to prevent duplication + \tmp:dim=\HColWidth \divide\tmp:dim by \ten:Em\relax \tmp:dim=10\tmp:dim - \Css{\#TBL-\TableNo-\HRow-\HCol - {width:\expandafter\x:Em \the\tmp:dim em;}}} + \Css{\#TBL-\TableNo-\HCol% CSS selects ID of the current table column + {width:\expandafter\x:Em \the\tmp:dim em;}} + \fi} \else \Log:Note{for width specifications of tabular p entries, use the `p-width' command line option or a configuration similar |