Skip to content

Commit

Permalink
Merge pull request #688 from openSUSE/fix-empty-textobject-phrase
Browse files Browse the repository at this point in the history
Check for empty textobject/phrase
  • Loading branch information
tomschr authored Mar 5, 2025
2 parents a93c9a1 + 92848c5 commit 5673669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suse2022-ns/xhtml/graphics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@
<xsl:variable name="alt.candidate">
<xsl:choose>
<!-- Try other first -->
<xsl:when test="../../d:textobject/d:phrase">
<xsl:when test="../../d:textobject/d:phrase[normalize-space() != '']">
<xsl:apply-templates select="../../d:textobject/d:phrase/node()"/>
</xsl:when>
<xsl:when test="../../../d:caption[d:para]">
Expand Down

0 comments on commit 5673669

Please sign in to comment.