Fix bug introduced into collapsing of long PIs and comments. Bug 379683followup, r+sr=sicking.

This commit is contained in:
bzbarsky@mit.edu 2007-05-15 19:52:30 -07:00
parent 26ddd49bca
commit fcd6592fc2

View File

@ -123,12 +123,14 @@
<div class="expander-open">
<xsl:call-template name="expander"/>
<div class="pi">
<span class="pi">
<xsl:text> &lt;?</xsl:text>
<xsl:value-of select="name(.)"/>
<div class="expander-content"><xsl:value-of select="."/></div>
</span>
<div class="expander-content pi"><xsl:value-of select="."/></div>
<span class="pi">
<xsl:text>?&gt;</xsl:text>
</div>
</span>
</div>
</xsl:template>
@ -144,13 +146,15 @@
<div class="expander-open">
<xsl:call-template name="expander"/>
<div class="comment">
<span class="comment">
<xsl:text>&lt;!--</xsl:text>
<div class="expander-content">
<xsl:value-of select="."/>
</div>
<xsl:text>--&gt;</xsl:text>
</span>
<div class="expander-content comment">
<xsl:value-of select="."/>
</div>
<span class="comment">
<xsl:text>--&gt;</xsl:text>
</span>
</div>
</xsl:template>