mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Try to make last-revsion a little more robust.
Don't display anything for empty '$Date$' variables, and just display the value for normal, non version control values. [SVN r86273]
This commit is contained in:
parent
8d4f56a3b8
commit
ac51c2dcfc
@ -232,11 +232,14 @@ set toc,title
|
||||
<xsl:value-of
|
||||
select="normalize-space($revision-node/attribute::rev:last-revision)"/>
|
||||
</xsl:variable>
|
||||
<xsl:if test="string-length($revision-text) > 0">
|
||||
<xsl:if test="string-length($revision-text) > 0 and not($revision-text = '$Date$')">
|
||||
<p>
|
||||
<small>
|
||||
<xsl:text>Last revised: </xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="not(contains($revision-text, '$Date: ')) and not(contains($revision-text, '$Date:: '))">
|
||||
<xsl:value-of select="$revision-text"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($revision-text, '/')">
|
||||
<xsl:call-template name="format.cvs.revision">
|
||||
<xsl:with-param name="text" select="$revision-text"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user