Skip to content

Commit

Permalink
Small code improvements due to #596
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschr committed Nov 28, 2023
1 parent 8237e56 commit e020ce4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion suse2022-ns/fo/block.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
need to add another one, $last-char allows us to check. -->
<xsl:variable name="last-char-candidate">
<xsl:choose>
<xsl:when test="$titlestr != ''">
<xsl:when test="$ns-titlestr != ''">
<xsl:value-of select="substring($ns-titlestr, string-length($ns-titlestr),1)"/>
</xsl:when>
<xsl:otherwise>FAIL</xsl:otherwise>
Expand Down
3 changes: 1 addition & 2 deletions suse2022-ns/xhtml/block.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
</xsl:variable>
<xsl:variable name="ns-titleStr" select="normalize-space($titleStr)"/>
<xsl:variable name="lastChar">
<xsl:if test="normalize-space($ns-titleStr) != ''">
<xsl:if test="$ns-titleStr != ''">
<xsl:value-of select="substring($ns-titleStr, string-length($ns-titleStr), 1)"/>
</xsl:if>
</xsl:variable>
Expand All @@ -144,7 +144,6 @@
<xsl:with-param name="key">runinhead.default.title.end.punct</xsl:with-param>
</xsl:call-template>
</xsl:if>
<!--<xsl:text>&#160;</xsl:text>-->
</span>
</xsl:template>

Expand Down

0 comments on commit e020ce4

Please sign in to comment.