Pretty log: Number lines and make them linkable

This commit is contained in:
Eelco Dolstra 2013-04-02 11:25:46 +02:00
parent b8369a6a5f
commit 94984270b0
2 changed files with 7 additions and 0 deletions

View file

@ -48,3 +48,8 @@ span.code {
.prio3 {
font-style: italic;
}
a.lineno {
color: #909090;
float: right;
}

View file

@ -56,6 +56,8 @@
<xsl:template match="head|line">
<xsl:variable name="lineno"><xsl:number count="head|line" level="any" /></xsl:variable>
<a class="lineno" href="#line-{$lineno}" id="line-{$lineno}"><xsl:value-of select="$lineno" /> </a>
<span class="code">
<xsl:if test="@error">
<xsl:attribute name="class">code errorLine</xsl:attribute>