summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-09-13 20:25:47 +0200
committerAndras Timar <atimar@suse.com>2012-09-13 22:57:16 +0200
commit9302520ff445d9789859f501b8bd6bc32c300e26 (patch)
treeaef7ab4e58503fd110e619472f6d7ed6db6a82ba /xmlhelp
parent741c56aa7309505f855e58239205cfa4b1d091dd (diff)
enable indentation of Basic source code in help fdo#41737
Change-Id: I63308cb7cbe21cb28082c815b53a3cbf286fe3ab
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/util/main_transform.xsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmlhelp/util/main_transform.xsl b/xmlhelp/util/main_transform.xsl
index f32cc9d647fd..bb6136981d8c 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" />