diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-12-26 12:54:58 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-12-26 22:15:20 +0100 |
commit | e6095165acb81b895d5671a4414faf7885a622ff (patch) | |
tree | b58f3496f4d7d128cc924d152e677e0acc038ac6 /help3xsl/online_transform.xsl | |
parent | 2d43bbab27930b562466b9a05c8fcdcae1e08537 (diff) |
Review code in help page and mute l10n when OK
+ Added "smathcode" role to render smath code paragraphs
+ let smath code samples be copied to clipboard.
Change-Id: I580c162d0c77f51d0de817ca143a845abf56eca9
Reviewed-on: https://gerrit.libreoffice.org/65621
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index ad285480de..5fa01a773b 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -538,7 +538,7 @@ </xsl:call-template> </xsl:when> - <xsl:when test="contains(' note warning tip ',@role)"> + <xsl:when test="@role='note' or @role='tip' or @role='warning'"> <xsl:call-template name="insertnote"> <xsl:with-param name="type" select="@role" /> </xsl:call-template> @@ -552,6 +552,10 @@ <xsl:value-of select="." /> </xsl:when> + <xsl:when test="@role='smathcode'"> + <p id="{@id}" class="smathcode"><span class="input" data-tooltip="{$ui_copyclip}"><xsl:apply-templates /></span></p> + </xsl:when> + <xsl:when test="@role='logocode'"> <xsl:call-template name="insertlogocode" /> </xsl:when> @@ -579,7 +583,7 @@ </xsl:call-template> </xsl:when> - <xsl:when test="contains(' note warning tip ',@role)"> + <xsl:when test="@role='note' or @role='tip' or @role='warning'"> <xsl:call-template name="insertnote"> <xsl:with-param name="type" select="@role" /> </xsl:call-template> @@ -589,6 +593,17 @@ <xsl:apply-templates /> </xsl:when> + <xsl:when test="@role='bascode' or @role='pycode'"> + <xsl:value-of select="." /> + </xsl:when> + + <xsl:when test="@role='smathcode'"> + <p id="{@id}" class="smathcode"><span class="input" data-tooltip="{$ui_copyclip}"><xsl:apply-templates /></span></p> + </xsl:when> + + <xsl:when test="@role='logocode'"> + <xsl:call-template name="insertlogocode" /> + </xsl:when> <xsl:otherwise> <xsl:call-template name="insertpara" /> </xsl:otherwise> |