Changeset a743e57


Ignore:
Timestamp:
09/28/2014 08:06:23 AM (10 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
2af991d
Parents:
f079f8f
Message:

Avoid spurious linebreaks
in test commands, because some developpers
include them for formatting the xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    rf079f8f ra743e57  
    421421
    422422  <xsl:template match="para/command">
    423     <xsl:if test="(contains(string(),'test') or
    424             contains(string(),'check'))">
     423    <xsl:variable name="ns" select="normalize-space(string())"/>
     424    <xsl:if test="(contains($ns,'test') or
     425            contains($ns,'check'))">
    425426      <xsl:text>#</xsl:text>
    426       <xsl:value-of select="substring-before(string(),'make ')"/>
     427      <xsl:value-of select="substring-before($ns,'make ')"/>
    427428      <xsl:text>make </xsl:text>
    428       <xsl:if test="not(contains(string(),'-k'))">
     429      <xsl:if test="not(contains($ns,'-k'))">
    429430        <xsl:text>-k </xsl:text>
    430431      </xsl:if>
    431       <xsl:value-of select="substring-after(string(),'make ')"/>
     432      <xsl:value-of select="substring-after($ns,'make ')"/>
    432433      <xsl:text> || true&#xA;</xsl:text>
    433434    </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.