[Libreoffice-commits] .: xmlhelp/util
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 13 13:55:38 PDT 2012
xmlhelp/util/main_transform.xsl | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 9302520ff445d9789859f501b8bd6bc32c300e26
Author: Andras Timar <atimar at suse.com>
Date: Thu Sep 13 20:25:47 2012 +0200
enable indentation of Basic source code in help fdo#41737
Change-Id: I63308cb7cbe21cb28082c815b53a3cbf286fe3ab
diff --git a/xmlhelp/util/main_transform.xsl b/xmlhelp/util/main_transform.xsl
index f32cc9d..bb61369 100644
--- a/xmlhelp/util/main_transform.xsl
+++ b/xmlhelp/util/main_transform.xsl
@@ -371,6 +371,10 @@
<xsl:apply-templates />
</xsl:when>
+ <xsl:when test="@role='bascode'">
+ <xsl:call-template name="insertbascode" />
+ </xsl:when>
+
<xsl:otherwise>
<xsl:call-template name="insertpara" />
</xsl:otherwise>
@@ -594,6 +598,11 @@
<p class="{$role}"><xsl:apply-templates /></p>
</xsl:template>
+<!-- Insert Basic code snippet -->
+<xsl:template name="insertbascode">
+ <pre><xsl:apply-templates /></pre>
+</xsl:template>
+
<!-- Insert "How to get Link" -->
<xsl:template name="insert_howtoget">
<xsl:param name="linkhref" />
More information about the Libreoffice-commits
mailing list