mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 23:13:58 +00:00
Don't allow < or > in man page names
[SVN r18012]
This commit is contained in:
parent
ea66c4215c
commit
83a78fbe01
@ -36,12 +36,19 @@
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template name="build.refentry.filename">
|
||||||
|
<xsl:param name="node" select="."/>
|
||||||
|
<xsl:variable name="section" select="$node/refmeta/manvolnum"/>
|
||||||
|
<xsl:variable name="name" select="$node/refnamediv/refname[1]"/>
|
||||||
|
<xsl:value-of select="concat('man', $section, '/',
|
||||||
|
translate(normalize-space($name),
|
||||||
|
'<>', '__'),
|
||||||
|
'.', $section)"/>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="refentry" mode="manifest">
|
<xsl:template match="refentry" mode="manifest">
|
||||||
<xsl:variable name="section" select="refmeta/manvolnum"/>
|
<xsl:call-template name="build.refentry.filename"/>
|
||||||
<xsl:variable name="name" select="refnamediv/refname[1]"/>
|
|
||||||
<xsl:value-of select="concat('man', $section, '/', normalize-space ($name),
|
|
||||||
'.', $section)"/>
|
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
@ -111,8 +118,9 @@
|
|||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:call-template name="write.text.chunk">
|
<xsl:call-template name="write.text.chunk">
|
||||||
<xsl:with-param name="filename"
|
<xsl:with-param name="filename">
|
||||||
select="concat('man', $section, '/', normalize-space ($name), '.', $section)"/>
|
<xsl:call-template name="build.refentry.filename"/>
|
||||||
|
</xsl:with-param>
|
||||||
<xsl:with-param name="content">
|
<xsl:with-param name="content">
|
||||||
<xsl:text>.\"Generated by db2man.xsl. Don't modify this, modify the source.
|
<xsl:text>.\"Generated by db2man.xsl. Don't modify this, modify the source.
|
||||||
.de Sh \" Subsection
|
.de Sh \" Subsection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user