# HG changeset patch # User Anton Shestakov # Date 1431626863 -28800 # Node ID 09ec4220a839eaa24a5cab87977028d467b3e82c # Parent 149cc7663ac85994d617a3280b4c66c16760c62c hgweb: split some long lines in paper, gitweb and monoblue styles This will ease future patches for the templates. As a result of this patch, paper style has one visual change in log/shortlog/file log view: the spacing between commit message and the first tag (or branch name, or bookmark) is now roughly who spaces wide instead of one space wide. This spacing is consistent with the one between branch names/tags/bookmarks themselves, so it looks better. In gitweb style, the change from non-breakable space to regular space is consistent with other elements. In monoblue the change is not noticeable. diff -r 149cc7663ac8 -r 09ec4220a839 mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map Wed May 13 11:22:06 2015 -0700 +++ b/mercurial/templates/gitweb/map Fri May 15 02:07:43 2015 +0800 @@ -296,8 +296,12 @@ - file | diff | annotate {rename%filelogrename} - ' + file | + diff | + annotate + {rename%filelogrename} + + ' archiveentry = ' | {type|escape} ' indexentry = ' diff -r 149cc7663ac8 -r 09ec4220a839 mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map Wed May 13 11:22:06 2015 -0700 +++ b/mercurial/templates/monoblue/map Fri May 15 02:07:43 2015 +0800 @@ -244,7 +244,11 @@ filelogentry = ' {date|rfc822date} - {desc|strip|firstline|escape|nonempty} + + + {desc|strip|firstline|escape|nonempty} + + file | diff | annotate {rename%filelogrename} diff -r 149cc7663ac8 -r 09ec4220a839 mercurial/templates/paper/filelogentry.tmpl --- a/mercurial/templates/paper/filelogentry.tmpl Wed May 13 11:22:06 2015 -0700 +++ b/mercurial/templates/paper/filelogentry.tmpl Fri May 15 02:07:43 2015 +0800 @@ -1,5 +1,8 @@ {date|rfc822date} {author|person} - {desc|strip|firstline|escape|nonempty}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{rename%filelogrename} + + {desc|strip|firstline|escape|nonempty} + {inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{rename%filelogrename} + diff -r 149cc7663ac8 -r 09ec4220a839 mercurial/templates/paper/shortlogentry.tmpl --- a/mercurial/templates/paper/shortlogentry.tmpl Wed May 13 11:22:06 2015 -0700 +++ b/mercurial/templates/paper/shortlogentry.tmpl Fri May 15 02:07:43 2015 +0800 @@ -1,5 +1,8 @@ {date|rfc822date} {author|person} - {desc|strip|firstline|escape|nonempty}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag} + + {desc|strip|firstline|escape|nonempty} + {inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag} + diff -r 149cc7663ac8 -r 09ec4220a839 tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Wed May 13 11:22:06 2015 -0700 +++ b/tests/test-hgweb-commands.t Fri May 15 02:07:43 2015 +0800 @@ -762,22 +762,34 @@ Thu, 01 Jan 1970 00:00:00 +0000 test - branch commit with null character: unstable tip something + + branch commit with null character: + unstable tip something + Thu, 01 Jan 1970 00:00:00 +0000 test - branchstable + + branch + stable + Thu, 01 Jan 1970 00:00:00 +0000 test - Added tag 1.0 for changeset 2ef0ac749a14default + + Added tag 1.0 for changeset 2ef0ac749a14 + default + Thu, 01 Jan 1970 00:00:00 +0000 test - base1.0 anotherthing + + base + 1.0 anotherthing + @@ -1024,7 +1036,10 @@ Thu, 01 Jan 1970 00:00:00 +0000 test - base1.0 anotherthing + + base + 1.0 anotherthing + diff -r 149cc7663ac8 -r 09ec4220a839 tests/test-hgweb-filelog.t --- a/tests/test-hgweb-filelog.t Wed May 13 11:22:06 2015 -0700 +++ b/tests/test-hgweb-filelog.t Fri May 15 02:07:43 2015 +0800 @@ -191,12 +191,18 @@ Thu, 01 Jan 1970 00:00:00 +0000 test - second a + + second a + + Thu, 01 Jan 1970 00:00:00 +0000 test - first a + + first a + + @@ -302,12 +308,18 @@ Thu, 01 Jan 1970 00:00:00 +0000 test - second a + + second a + + Thu, 01 Jan 1970 00:00:00 +0000 test - first a + + first a + + @@ -413,7 +425,10 @@ Thu, 01 Jan 1970 00:00:00 +0000 test - first a + + first a + + @@ -519,7 +534,10 @@ Thu, 01 Jan 1970 00:00:00 +0000 test - first a + + first a + +