diff options
-rw-r--r-- | help3xsl/default.css | 4 | ||||
-rw-r--r-- | help3xsl/online_transform.xsl | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css index 50023f5fc5..ba548c337c 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -133,6 +133,10 @@ pre, /* Table related classes */ +/* Special case of table with one cell*/ +.onecell{ +} + table { box-shadow: rgba(0,0,0,0.1) 0px 1px 3px 0px; border-collapse: collapse; diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 39b656ef01..39ad8471a9 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -787,6 +787,7 @@ </xsl:otherwise> </xsl:choose> </xsl:template> +<xsl:template match="tablecell" mode="onecell"><xsl:apply-templates/></xsl:template> <xsl:template match="tablecell" mode="icontable"><td valign="top"><xsl:apply-templates/></td></xsl:template> <xsl:template match="tablecell" mode="embedded"> <xsl:choose> @@ -801,6 +802,7 @@ <!-- TABLEROW --> <xsl:template match="tablerow"><tr><xsl:apply-templates /></tr></xsl:template> +<xsl:template match="tablerow" mode="onecell"><xsl:apply-templates mode="onecell"/></xsl:template> <xsl:template match="tablerow" mode="icontable"><tr><xsl:apply-templates mode="icontable"/></tr></xsl:template> <xsl:template match="tablerow" mode="embedded"><tr><xsl:apply-templates mode="embedded"/></tr></xsl:template> @@ -1223,9 +1225,7 @@ <xsl:choose> <xsl:when test="count(descendant::tablecell)=1"> - <table border="0" class="onecell" cellpadding="0" cellspacing="0"> - <xsl:apply-templates /> - </table> + <div class="onecell"><xsl:apply-templates mode="onecell"/></div> </xsl:when> <xsl:when test="descendant::tablecell[1]/descendant::image"> |