diff --git a/mercurial/templates/coal/map b/mercurial/templates/coal/map
--- a/mercurial/templates/coal/map
+++ b/mercurial/templates/coal/map
@@ -73,32 +73,36 @@ filediff = ../paper/filediff.tmpl
filecomparison = ../paper/filecomparison.tmpl
filelog = ../paper/filelog.tmpl
fileline = '
-
'
+ {strip(line|escape, '\r\n')}'
filelogentry = ../paper/filelogentry.tmpl
annotateline = '
-
+
- {author|user}@{rev}
|
- {linenumber} {line|escape} |
+ {linenumber} {line|escape} |
'
-diffblock = ''
-difflineplus = '{linenumber} {line|escape}'
-difflineminus = '{linenumber} {line|escape}'
-difflineat = '{linenumber} {line|escape}'
-diffline = '{linenumber} {line|escape}'
+diffblock = ''
+difflineplus = '
+ {strip(line|escape, '\r\n')}'
+difflineminus = '
+ {strip(line|escape, '\r\n')}'
+difflineat = '
+ {strip(line|escape, '\r\n')}'
+diffline = '
+ {strip(line|escape, '\r\n')}'
comparisonblock ='
{lines}
'
comparisonline = '
-
- {leftlinenumber} {leftline|escape} |
- {rightlinenumber} {rightline|escape} |
+
+ {leftlinenumber} {leftline|escape} |
+ {rightlinenumber} {rightline|escape} |
'
changelogparent = '
diff --git a/mercurial/templates/static/style-coal.css b/mercurial/templates/static/style-coal.css
--- a/mercurial/templates/static/style-coal.css
+++ b/mercurial/templates/static/style-coal.css
@@ -107,6 +107,9 @@ a { text-decoration:none; }
.minusline { color: #dc143c; } /* crimson */
.atline { color: purple; }
+.diffstat-table {
+ margin-top: 1em;
+}
.diffstat-file {
white-space: nowrap;
font-size: 90%;
@@ -199,8 +202,6 @@ h3 {
.bigtable .description { }
.bigtable .description .base { font-size: 70%; float: right; line-height: 1.66; }
.bigtable .node { width: 5em; font-family: monospace;}
-.bigtable .lineno { width: 2em; text-align: right;}
-.bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;}
.bigtable .permissions { width: 8em; text-align: left;}
.bigtable .size { width: 5em; text-align: right; }
.bigtable .annotate { text-align: right; }
@@ -218,13 +219,59 @@ h3 {
.source a { color: #999; font-size: smaller; font-family: monospace;}
.bottomline { border-bottom: 1px solid #999; }
-.sourcelines > div {
+.sourcelines {
+ font-size: 90%;
+ position: relative;
+ counter-reset: lineno;
+}
+
+.wrap > span {
+ white-space: pre-wrap;
+}
+
+.linewraptoggle {
+ float: right;
+}
+
+.diffblocks { counter-reset: lineno; }
+.diffblocks > div { counter-increment: lineno; }
+
+.sourcelines > span {
display: inline-block;
+ box-sizing: border-box;
width: 100%;
- padding: 1px 0px;
+ padding: 1px 0px 1px 5em;
counter-increment: lineno;
}
+.sourcelines > span:before {
+ -moz-user-select: -moz-none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ display: inline-block;
+ margin-left: -5em;
+ width: 4em;
+ font-size: smaller;
+ color: #999;
+ text-align: right;
+ content: counters(lineno, ".");
+ float: left;
+}
+
+.sourcelines > span:target, tr:target td {
+ background-color: #bfdfff;
+}
+
+.sourcelines > a {
+ display: inline-block;
+ position: absolute;
+ left: 0px;
+ width: 4em;
+ height: 1em;
+}
+
.fileline { font-family: monospace; }
.fileline img { border: 0; }
diff --git a/tests/test-hgweb-symrev.t b/tests/test-hgweb-symrev.t
--- a/tests/test-hgweb-symrev.t
+++ b/tests/test-hgweb-symrev.t
@@ -376,8 +376,8 @@ Set up the repo
annotate foo @ 1:a7c1559b7bba
43c799df6e75 |
9d8c40cba617 |
- log