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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Tue Apr 4 17:53:17 CEST 2017


Author: michal_h21
Date: 2017-04-04 18:53:17 +0300 (Tue, 04 Apr 2017)
New Revision: 270

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Changed some <center> elements to <div>

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-04-01 23:06:07 UTC (rev 269)
+++ trunk/lit/ChangeLog	2017-04-04 15:53:17 UTC (rev 270)
@@ -1,3 +1,8 @@
+2017-04-04  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): changed some deprecated <center>
+	elements to <div>
+
 2017-04-01  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-html5.tex: copyright 2017.

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2017-04-01 23:06:07 UTC (rev 269)
+++ trunk/lit/tex4ht-html4.tex	2017-04-04 15:53:17 UTC (rev 270)
@@ -4642,12 +4642,13 @@
    {\HCode{</td></tr></table></div>}|<caption label comment|>%
 }
 \Css{.caption td.id{font-weight: bold; white-space: nowrap; }}
-\Css{div.cation {text-align:center;}}
+\Css{div.caption {text-align:center;}}
 >>>
 
 \<amsppt captions\><<<
 \Configure{caption}
-   {\:xhtml{\IgnorePar\EndP}\HCode{<center>}}{}{\HCode{</center>}}
+   {\:xhtml{\IgnorePar\EndP}\HCode{<div class="caption">}}{}{\HCode{</div>}}
+\Css{div.caption {text-align:center;}}
 >>>
 
 \<config span caption\><<<
@@ -9296,9 +9297,9 @@
    {\endgroup\IgnorePar\HCode{</div>}}
 \Css{div.title {margin-top: 0.5em;}}
 \Configure{author}
-   {\IgnorePar\EndP\HCode{<br /><center>}\IgnorePar\par}
-   {\IgnorePar\EndP\HCode{</center>}}
-
+   {\IgnorePar\EndP\HCode{<br /><div class="author">}\IgnorePar\par}
+   {\IgnorePar\EndP\HCode{</div>}}
+   \Css{div.author{text-align:center;}}
 >>>
 
 \<32,4 amsppt\><<<
@@ -9306,8 +9307,8 @@
    {\IgnorePar\EndP\HCode{<h1 class="amsspecialheadHead"\a:LRdir>}}
    {\HCode{</h1>}\IgnoreIndent}
 \ConfigureToc{specialhead}
-   {\HCode{<center>}\ignorespaces}{ }
-   {}{\HCode{</center>}}
+   {\HCode{<div class="center">}\ignorespaces}{ }
+   {}{\HCode{</div>}}
 \Configure{head}{}{}
    {\IgnorePar\EndP\HCode{<h2 class="amsheadHead"\a:LRdir>}}
    {\HCode{</h2>}\IgnoreIndent}
@@ -9353,16 +9354,19 @@
 >>>
 
 \<NO\><<<
-\def\m:env#1{\:xhtml{\IgnorePar\EndP}\HCode{<center><table class="#1"
+\def\m:env#1{\:xhtml{\IgnorePar\EndP}\HCode{<div class="center"><table class="#1"
    border="0" cellpadding="0" cellspacing="15"><tr><td>}}
 \def\endm:env{\HCode
   {</td></tr></table></center>}\IgnorePar}
+  \Css{div.center{text-align:center;}}
 >>>
 
 \<amsmath / amstex1 m:env\><<<
 \def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
-  \HCode{<center class="#1"><table class="#1"\Hnewline
-   border="0" cellpadding="0" cellspacing="15"><tr><td>}}
+  \HCode{<div class="center-#1"><table class="#1"\Hnewline
+   border="0" cellpadding="0" cellspacing="15"><tr><td>}
+   \Css{div.center-#1{text-align: center;}}
+ }
 \def\endm:env{\:xhtml{\IgnorePar\EndP}%
    \HCode{</td></tr></table></center>}\IgnorePar
    \ifmmode\else\par\fi}



More information about the tex4ht-commits mailing list