mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 23:13:58 +00:00
Normalise space in section class.
Cleans up the output a tad bit when there's no role. [SVN r84554]
This commit is contained in:
parent
25840691ee
commit
8333508c17
@ -221,7 +221,8 @@
|
||||
<xsl:with-param name="object" select="$node"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="concat($class,' ',@role,' ',translate($id, '.', '_'))"/>
|
||||
<xsl:value-of select="normalize-space(concat($class, ' ',
|
||||
@role, ' ', translate($id, '.', '_')))"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Adds role class for simplesect element resulting div. So that
|
||||
@ -229,7 +230,7 @@
|
||||
<xsl:template match="simplesect" mode="class.value">
|
||||
<xsl:param name="class" select="local-name(.)"/>
|
||||
<xsl:param name="node" select="."/>
|
||||
<xsl:value-of select="concat($class,' ',@role)"/>
|
||||
<xsl:value-of select="normalize-space(concat($class,' ',@role))"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Allow for specifying that a section should not include the parents
|
||||
|
Loading…
x
Reference in New Issue
Block a user