Skip to content

Commit

Permalink
Don't issue unhelpful messges for style ID "entry".
Browse files Browse the repository at this point in the history
  • Loading branch information
contrext committed Feb 28, 2018
1 parent f33e916 commit a164bbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xsl/office-open-utils.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@
select="$styleElem/w:name/@w:val"/>
<xsl:sequence select="$styleName"/>
</xsl:when>
<xsl:when test="$styleId = ('entry')">
<!-- There are no default styles for table entries, so no need to say anything. -->
<xsl:sequence select="$styleId"/>
</xsl:when>
<xsl:otherwise>
<xsl:message> + [WARN] lookupStyleName(): No style definition found for style ID "<xsl:sequence select="$styleId"/>", returning style ID "<xsl:sequence select="$styleId"/>"</xsl:message>
<xsl:message> + [WARN] lookupStyleName(): No style definition found for style ID "<xsl:sequence select="$styleId"/>"</xsl:message>
<xsl:sequence select="$styleId"/>
</xsl:otherwise>
</xsl:choose>
Expand Down

0 comments on commit a164bbe

Please sign in to comment.