OK, I'm making some progress on this. I used a closed <p> tag rather than
<br> and that seemed to work but I'm still getting an extra space on the
new line.
Here is what I have right now:
>
>
<xsl:template name="itemSummaryView-DIM-description">
<xsl:if test="dim:field[@element='description']">
<div class="simple-item-view-description
item-page-field-wrapper table">
<h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item-description</i18n:text></h5>
<xsl:for-each
select="dim:field[@element='description'][not(@qualifier)]">
<xsl:choose>
<xsl:when test="contains(., '
')">
<xsl:value-of
select="substring-before(., '
')"/>
<p/>
<xsl:value-of select="substring-after(.,
'
')"/>
</xsl:when>
<xsl:when test="node()">
<xsl:copy-of select="node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:if>
</xsl:template>
And this is what it produces:
<https://lh3.googleusercontent.com/-bCxhLpqv9AM/WKOSIWkPcGI/AAAAAAAAo-s/Ox7awP2AP9UaEtTAwniTeJ52fYndMETiACLcB/s1600/Extra%2BSpace.png>
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.