forked from lix-project/hydra
Pretty log: Number lines and make them linkable
This commit is contained in:
parent
b8369a6a5f
commit
94984270b0
2 changed files with 7 additions and 0 deletions
|
@ -48,3 +48,8 @@ span.code {
|
||||||
.prio3 {
|
.prio3 {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.lineno {
|
||||||
|
color: #909090;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
|
@ -56,6 +56,8 @@
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="head|line">
|
<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">
|
<span class="code">
|
||||||
<xsl:if test="@error">
|
<xsl:if test="@error">
|
||||||
<xsl:attribute name="class">code errorLine</xsl:attribute>
|
<xsl:attribute name="class">code errorLine</xsl:attribute>
|
||||||
|
|
Loading…
Reference in a new issue