[tex4ht-commits] [SCM] tex4ht updated: r844 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sat Nov 21 15:07:00 CET 2020


Author: michal_h21
Date: 2020-11-21 16:07:00 +0200 (Sat, 21 Nov 2020)
New Revision: 844

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
caption: fixed spurious separator between caption number and text

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-11-20 22:24:51 UTC (rev 843)
+++ trunk/lit/ChangeLog	2020-11-21 14:07:00 UTC (rev 844)
@@ -1,3 +1,9 @@
+2020-11-21  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (caption.4ht): fixed spurious separator between caption
+	number and text.
+	https://tex.stackexchange.com/q/571684/2891
+
 2020-11-20  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (titlesec.4ht): fixed paragraph handling in sectioning

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2020-11-20 22:24:51 UTC (rev 843)
+++ trunk/lit/tex4ht-4ht.tex	2020-11-21 14:07:00 UTC (rev 844)
@@ -11315,12 +11315,15 @@
 } 
 >>>
 
-Handle redefined caption command
+Handle redefined caption command. We ignore the second parameter of
+\''\Configure{caption}'. It contains the separator between caption number
+and label. It is colon by default, but user can configure to use something 
+different. We should keep the separator selected by the user.
 
 \<caption redefine makecaption\><<<
 \long\def\@makecaption#1#2{%   
   \caption at make@above%
-  \cptA:\caption@@make{\cap:ref{#1}\if :#1:\else\cptB:\fi}{\cptC:#2}\cptD:%
+  \cptA:\caption@@make{\cap:ref{#1}}{\cptC:#2}\cptD:%
   \caption at make@below%
 }
 >>>



More information about the tex4ht-commits mailing list.