summaryrefslogtreecommitdiff
path: root/help3xsl/online_transform.xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-04-24 23:52:25 -0300
committerJan Holesovsky <kendy@collabora.com>2018-08-07 17:55:28 +0200
commit87458c62e87f807d6fb206358d236d3a774e81d0 (patch)
treefbcbe0470062e34a1aea22f22a5fdb3218ea9ff9 /help3xsl/online_transform.xsl
parent0d07c3a66dcc6e9f3eaac079de2124025bc577a1 (diff)
Replace onecell table by a div
Replace table of type onecell by a div + css Change-Id: I120a85c96b312d206a8f582c69405aeb5fd80a9c Reviewed-on: https://gerrit.libreoffice.org/53428 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r--help3xsl/online_transform.xsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 8ec397d279..02889355a4 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">