# HG changeset patch # User Anton Shestakov # Date 1423209175 -28800 # Node ID fdf7794be41d38209020602f7dbfe6b5c53699fe # Parent dc4fa3992414dbf379d2164d658546f847b52cf6 hgweb: replace implicit with explicit where appropriate Some templates in paper style use elements inside to assign a class to "body" part of that table (in this case, to make rows striped). The problem is that the is preceded by element, which browsers understand as an implicit start of table body, so the following exlicit will actually be "nested", which is not valid. Since that first contains table headers, wrapping it in is both semantically correct and follows the advertised XHTML 1.1 doctype. diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/bookmarks.tmpl --- a/mercurial/templates/paper/bookmarks.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/bookmarks.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -41,10 +41,12 @@
+ + {entries%bookmarkentry} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/branches.tmpl --- a/mercurial/templates/paper/branches.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/branches.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -41,10 +41,12 @@
bookmark node
+ + {entries % branchentry} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/fileannotate.tmpl --- a/mercurial/templates/paper/fileannotate.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/fileannotate.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -68,10 +68,12 @@
branch node
+ + {annotate%annotateline} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/filelog.tmpl --- a/mercurial/templates/paper/filelog.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/filelog.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -58,11 +58,13 @@ | {nav%filenav}
rev   line source
+ + {entries%filelogentry} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/index.tmpl --- a/mercurial/templates/paper/index.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/index.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -12,6 +12,7 @@
age author description
+ @@ -20,6 +21,7 @@ + {entries%indexentry} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/manifest.tmpl --- a/mercurial/templates/paper/manifest.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/manifest.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -39,11 +39,13 @@
Name Description   
+ + diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/search.tmpl --- a/mercurial/templates/paper/search.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/search.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -43,11 +43,13 @@
name size permissions
[up]
+ + {entries} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/shortlog.tmpl --- a/mercurial/templates/paper/shortlog.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/shortlog.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -54,11 +54,13 @@
age author description
+ + {entries%shortlogentry} diff -r dc4fa3992414 -r fdf7794be41d mercurial/templates/paper/tags.tmpl --- a/mercurial/templates/paper/tags.tmpl Sat Jan 31 12:54:35 2015 -0500 +++ b/mercurial/templates/paper/tags.tmpl Fri Feb 06 15:52:55 2015 +0800 @@ -41,10 +41,12 @@
age author description
+ + {entries%tagentry} diff -r dc4fa3992414 -r fdf7794be41d tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-hgweb-commands.t Fri Feb 06 15:52:55 2015 +0800 @@ -751,11 +751,13 @@
tag node
+ + @@ -1010,11 +1012,13 @@
age author description
Thu, 01 Jan 1970 00:00:00 +0000
+ + diff -r dc4fa3992414 -r fdf7794be41d tests/test-hgweb-descend-empties.t --- a/tests/test-hgweb-descend-empties.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-hgweb-descend-empties.t Fri Feb 06 15:52:55 2015 +0800 @@ -81,11 +81,13 @@
age author description
Thu, 01 Jan 1970 00:00:00 +0000
+ + diff -r dc4fa3992414 -r fdf7794be41d tests/test-hgweb-empty.t --- a/tests/test-hgweb-empty.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-hgweb-empty.t Fri Feb 06 15:52:55 2015 +0800 @@ -73,11 +73,13 @@
name size permissions
[up]
+ + @@ -182,11 +184,13 @@
age author description
+ + @@ -428,11 +432,13 @@
age author description
+ + diff -r dc4fa3992414 -r fdf7794be41d tests/test-hgweb-filelog.t --- a/tests/test-hgweb-filelog.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-hgweb-filelog.t Fri Feb 06 15:52:55 2015 +0800 @@ -180,11 +180,13 @@ | (0)tip
name size permissions
[up]
+ + @@ -289,11 +291,13 @@ | (0)tip
age author description
Thu, 01 Jan 1970 00:00:00 +0000
+ + @@ -398,11 +402,13 @@ | (0)tip
age author description
Thu, 01 Jan 1970 00:00:00 +0000
+ + @@ -502,11 +508,13 @@ | (0)tip
age author description
Thu, 01 Jan 1970 00:00:00 +0000
+ + diff -r dc4fa3992414 -r fdf7794be41d tests/test-hgweb.t --- a/tests/test-hgweb.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-hgweb.t Fri Feb 06 15:52:55 2015 +0800 @@ -272,11 +272,13 @@
age author description
Thu, 01 Jan 1970 00:00:00 +0000
+ + diff -r dc4fa3992414 -r fdf7794be41d tests/test-hgwebdir.t --- a/tests/test-hgwebdir.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-hgwebdir.t Fri Feb 06 15:52:55 2015 +0800 @@ -201,6 +201,7 @@
name size permissions
[up]
+ @@ -209,6 +210,7 @@ + @@ -699,6 +701,7 @@
Name Description   
+ @@ -707,6 +710,7 @@ + @@ -1128,6 +1132,7 @@
Name Description   
+ @@ -1136,6 +1141,7 @@ + diff -r dc4fa3992414 -r fdf7794be41d tests/test-highlight.t --- a/tests/test-highlight.t Sat Jan 31 12:54:35 2015 -0500 +++ b/tests/test-highlight.t Fri Feb 06 15:52:55 2015 +0800 @@ -268,10 +268,12 @@
Name Description   
+ +
rev   line source