mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Fix doxygen parameter 'formuladir' so that it doesn't need a trailing slash.
Would be nice to fix all uses of directories in a similar manner, but XSL is a pain. [SVN r84168]
This commit is contained in:
parent
b04fe544f4
commit
ceb83870c1
@ -51,6 +51,19 @@
|
|||||||
<xsl:key name="compounds-by-id" match="compounddef" use="@id"/>
|
<xsl:key name="compounds-by-id" match="compounddef" use="@id"/>
|
||||||
<xsl:key name="members-by-id" match="memberdef" use="@id" />
|
<xsl:key name="members-by-id" match="memberdef" use="@id" />
|
||||||
|
|
||||||
|
<!-- Add trailing slash to formuladir if missing -->
|
||||||
|
|
||||||
|
<xsl:variable name="boost.doxygen.formuladir.fixed">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="substring(boost.doxygen.formuladir, string-length(boost.doxygen.formuladir) - 1) = '/'">
|
||||||
|
<xsl:value-of select="$boost.doxygen.formuladir" />
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="concat($boost.doxygen.formuladir, '/')" />
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:strip-space elements="briefdescription detaileddescription inbodydescription"/>
|
<xsl:strip-space elements="briefdescription detaileddescription inbodydescription"/>
|
||||||
|
|
||||||
<xsl:template name="kind-error-message">
|
<xsl:template name="kind-error-message">
|
||||||
@ -1657,7 +1670,7 @@
|
|||||||
<imageobject role="html">
|
<imageobject role="html">
|
||||||
<imagedata format="PNG" align="center">
|
<imagedata format="PNG" align="center">
|
||||||
<xsl:attribute name="fileref">
|
<xsl:attribute name="fileref">
|
||||||
<xsl:value-of select="concat(concat(concat($boost.doxygen.formuladir, 'form_'), @id), '.png')"/>
|
<xsl:value-of select="concat(concat(concat($boost.doxygen.formuladir.fixed, 'form_'), @id), '.png')"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</imagedata>
|
</imagedata>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
@ -1678,7 +1691,7 @@
|
|||||||
<imageobject role="html">
|
<imageobject role="html">
|
||||||
<imagedata format="PNG">
|
<imagedata format="PNG">
|
||||||
<xsl:attribute name="fileref">
|
<xsl:attribute name="fileref">
|
||||||
<xsl:value-of select="concat(concat(concat($boost.doxygen.formuladir, 'form_'), @id), '.png')"/>
|
<xsl:value-of select="concat(concat(concat($boost.doxygen.formuladir.fixed, 'form_'), @id), '.png')"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</imagedata>
|
</imagedata>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user