Changeset 816f3f43


Ignore:
Timestamp:
10/03/2005 07:26:44 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
7d98315
Parents:
7bbd436
Message:

Clossing dumped scripts with a plain "exit" to prevent && at the end of the file when the last <screen> block is a non dumped block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dump-lfs-scripts.xsl

    r7bbd436 r816f3f43  
    5151        </xsl:if>
    5252        <xsl:apply-templates select=".//para/userinput | .//screen"/>
     53        <xsl:text>exit</xsl:text>
    5354      </exsl:document>
    5455    </xsl:if>
     
    6162        <xsl:otherwise>
    6263          <xsl:apply-templates select="userinput" mode="screen"/>
    63           <xsl:if test="position() != last() and
    64                   not(contains(string(),'EOF')) and
    65                   not(contains(string(),'check')) and
    66                   not(ancestor::sect1[@id='ch-tools-stripping'])">
    67             <xsl:text> &amp;&amp;</xsl:text>
    68           </xsl:if>
    69           <xsl:text>&#xA;</xsl:text>
    7064        </xsl:otherwise>
    7165      </xsl:choose>
     
    9387      </xsl:otherwise>
    9488    </xsl:choose>
     89    <xsl:if test="not(contains(string(),'EOF')) and
     90            not(contains(string(),'check'))">
     91      <xsl:text> &amp;&amp;</xsl:text>
     92    </xsl:if>
     93    <xsl:text>&#xA;</xsl:text>
    9594  </xsl:template>
    9695
Note: See TracChangeset for help on using the changeset viewer.