diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-19 19:26:46 -0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-07 17:55:28 +0200 |
commit | 223ac3bd5ac1a2458221c42de0157e8c6c8f9c92 (patch) | |
tree | 30976cefac84aa1cdb0378f96b8bcaa457357ca4 /help3xsl/online_transform.xsl | |
parent | 434726ceda4b3efd693491804aaf6f85fe7fb213 (diff) |
New Help: Improve table head rendering
Add class to parent <td> of <paragraph role="tablehead">
Change-Id: Ifb9caf4d4ac3ab5e4c750b5bd96260e2dcb298e1
Reviewed-on: https://gerrit.libreoffice.org/53179
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 59a5e45249..51a176b1ff 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -777,9 +777,27 @@ <xsl:template match="table" mode="embedded"><xsl:call-template name="inserttable"/></xsl:template> <!-- TABLECELL --> -<xsl:template match="tablecell"><td valign="top"><xsl:apply-templates /></td></xsl:template> +<xsl:template match="tablecell"> + <xsl:choose> + <xsl:when test="paragraph[@role='tablehead']"> + <td class='tableheadcell'><xsl:apply-templates /></td> + </xsl:when> + <xsl:otherwise> + <td><xsl:apply-templates /></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <xsl:template match="tablecell" mode="icontable"><td valign="top"><xsl:apply-templates/></td></xsl:template> -<xsl:template match="tablecell" mode="embedded"><td valign="top"><xsl:apply-templates mode="embedded"/></td></xsl:template> +<xsl:template match="tablecell" mode="embedded"> + <xsl:choose> + <xsl:when test="paragraph[@role='tablehead']"> + <td class='tableheadcell'><xsl:apply-templates mode="embedded"/></td> + </xsl:when> + <xsl:otherwise> + <td><xsl:apply-templates mode="embedded"/></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <!-- TABLEROW --> <xsl:template match="tablerow"><tr><xsl:apply-templates /></tr></xsl:template> |