Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git

Do not add empty begin-end blocks for ingredients.

Author Dave Jarvis <email>
Date 2013-03-29 00:09:11 GMT-0700
Commit 1c5ba506cbf957cef3163d983981f4a4910838c0
Parent 93a6aee
xsl/latex.xsl
<xsl:template match="ingredients[parent::recipe]">
+ <xsl:if test="count(ingredient[not(@substitute) or @substitute='']) &gt; 0">
<xsl:text>\begin{ingredients}&#xa;</xsl:text>
<xsl:apply-templates select="@label" />
<xsl:apply-templates select="ingredient[not(@substitute) or @substitute='']" />
<xsl:text>\end{ingredients}&#xa;&#xa;</xsl:text>
+ </xsl:if>
<!--
Delta 2 lines added, 0 lines removed, 2-line increase