[Libreoffice-commits] help.git: help3xsl/online_transform.xsl
Olivier Hallot
olivier.hallot at libreoffice.org
Sat Sep 9 00:41:24 UTC 2017
help3xsl/online_transform.xsl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 6005c5c31ca8e9f9107c5c0e35858d27e4a55490
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date: Fri Sep 8 10:22:11 2017 -0300
Add better support for <bascode> in helponline
Insert a div around a code snippet and categorize for schema.org
Change-Id: I7d4c9e15fccbf7e48af3c2faca9ed61ae5279c79
Reviewed-on: https://gerrit.libreoffice.org/42105
Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index c8be6611a..eebaced56 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -786,9 +786,13 @@
<p id="{@id}" class="{$role}"><xsl:apply-templates /></p>
</xsl:template>
+<xsl:template match="bascode">
+ <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet"><xsl:apply-templates /></div>
+</xsl:template>
+
<!-- Insert Basic code snippet -->
<xsl:template name="insertbascode">
- <pre itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet"><xsl:apply-templates /></pre>
+ <pre><xsl:apply-templates /></pre>
</xsl:template>
<!-- Insert Logo code snippet -->
More information about the Libreoffice-commits
mailing list