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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Sun Apr 25 14:46:47 CEST 2021


Author: michal_h21
Date: 2021-04-25 12:46:47 +0000 (Sun, 25 Apr 2021)
New Revision: 913

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Use \:nbsp in listings, instead of specials

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-04-25 12:43:36 UTC (rev 912)
+++ trunk/lit/ChangeLog	2021-04-25 12:46:47 UTC (rev 913)
@@ -6,6 +6,8 @@
 	* tex4ht-4ht.tex (latex.4ht, plain.4ht): \:nbsp should output non breaking
 	space inside picture.
 	* tex4ht-html4.tex (html4.4ht): test for \Picture inside \a:HChar.
+	* tex4ht-unicode.tex (unicode.4ht): use correct definition of \:nbsp.
+	* tex4ht-html4.tex (html4.4ht): use \:nbsp in listings configurations.
 
 2021-04-22  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2021-04-25 12:43:36 UTC (rev 912)
+++ trunk/lit/tex4ht-html4.tex	2021-04-25 12:46:47 UTC (rev 913)
@@ -15011,9 +15011,17 @@
 >>>
 
 \<nbsp\><<<
-\leavevmode\special{t4ht at +\string&{35}x00A0{59}}x%
+\:nbsp%
 >>>
 
+There used to be this code:
+
+\verb|\leavevmode\special{t4ht at +\string&{35}x00A0{59}}x|
+
+The \verb|\:nbsp| is universal non breaking spacing macro for TeX4ht. It
+handles cases when it is used inside pictures, so it should be used instead of
+explicit specials.
+
 The `59' stands for semicolon. Explicit character might be problematic
 for languages (e.g., French) where the cahacter is active and may be
 imported from aux or another file.  
@@ -15253,7 +15261,7 @@
        \Configure{listings}  
          {{\everypar{}\leavevmode}}  
          {{\everypar{}\leavevmode}}  
-         {\leavevmode\special{t4ht at +\string&{35}x00A0{59}}x%  
+         {|<nbsp|>%
              \HCode{<br /><span class="label">}}  
          {\HCode{</span>}}%  
    }  



More information about the tex4ht-commits mailing list.