|
#1
|
|||
|
|||
HTML Transform - Output Step Ignoring CRLF
I have the output of a Subversion log going to standard output. When I perform a Transform XML step the carriage return/line feeds appear to be ignored and the output runs together.
Do you know if this is an xslt issue or something specific to the transform step? Thanks..... |
#2
|
|||
|
|||
CR/LF chars in the step output carry through to the HTML file in our tests (note that newlines are normally treated as whitespace rather than line breaks in browsers, but TransformLog.xslt puts step output within PRE tags to force newlines to be processed as line breaks).
Please ZIP and send or post: 1) The info from Help | About | Install Info 2) The .bld file 3) A build log file (XML and HTML) 4) The browser brand+version used to view the log file Thanks. |
#3
|
|||
|
|||
The <pre> tags actually did the trick! I have been using a modified version of this for couple of years and had not looked at the standard transform for quite some time.
Below is a section of the xslt with the <pre> tags now added... <xsl:for-each select="$BuildStatusFilter"> <xsl:for-each select="step[@action='Subversion']"> <xsl:if test="name='Subversion Log'"> <tr> <td class="NormalBold">:</td> <td class="Normal"> <pre><xsl:value-of select="output"/></pre> </td> </tr> </xsl:if> </xsl:for-each> </xsl:for-each> Thanks! |
|
|