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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Apr 6 13:58:58 CEST 2017


Author: michal_h21
Date: 2017-04-06 14:58:58 +0300 (Thu, 06 Apr 2017)
New Revision: 272

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Remove units and round width and height attributes of <img> element

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2017-04-05 07:51:05 UTC (rev 271)
+++ trunk/lit/ChangeLog	2017-04-06 11:58:58 UTC (rev 272)
@@ -1,3 +1,8 @@
+2017-04-06  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): Round dimensions and remove units in width
+	and height attributes in <img> elements.
+
 2017-04-05  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): added \EndPauseMathClass to

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2017-04-05 07:51:05 UTC (rev 271)
+++ trunk/lit/tex4ht-html4.tex	2017-04-06 11:58:58 UTC (rev 272)
@@ -13627,9 +13627,8 @@
       `graphics-num' or `graphics-'. The `num' should provide
       the density of pixels in the bitmaps (e.g., 110).
    }
-\else
-   \def\int:pt#1.#2|<par del|>{#1}
 \fi
+\def\int:pt#1.#2|<par del|>{#1}
 >>>
 
 
@@ -13683,8 +13682,8 @@
 \<pixels graphics width/height\><<<
 \ifx \gr:density\empty
    \HCode{
-      width="\the\Gin at req@width"
-      height="\the\Gin at req@height"
+      width="\expandafter\int:pt\the\Gin at req@width|<par del|>"
+      height="\expandafter\int:pt\the\Gin at req@height|<par del|>"
    }%
 \else
    \bgroup
@@ -13702,8 +13701,8 @@
 
 
 \<graphics width/height\><<<
-width="\the\Gin at req@width"
-height="\the\Gin at req@height"
+width="\expandafter\int:pt\the\Gin at req@width|<par del|>"
+height="\expandafter\int:pt\the\Gin at req@height|<par del|>"
 >>>
 
 \<graphicx width/height\><<<



More information about the tex4ht-commits mailing list