Skip to content

Commit 4a3d462

Browse files
author
Sanders Kleinfeld
committed
Reducing specificity on counting spans with class of "line-number" to work around xsltproc processing bug.
1 parent 55bd7a9 commit 4a3d462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmlbook-xsl/elements.xsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
<xsl:template match="h:span[@class='line-number']" mode="number.code.lines">
362362
<xsl:copy>
363363
<xsl:apply-templates select="@*"/>
364-
<xsl:number count="h:span[@class='line-number']" level="any" from="h:pre[@data-type='programlisting']"/>
364+
<xsl:number count="h:span[@class='line-number']" level="any" from="h:pre"/>
365365
<xsl:text> </xsl:text>
366366
</xsl:copy>
367367
</xsl:template>

0 commit comments

Comments
 (0)