# HG changeset patch # User Gregory Szorc # Date 1500332055 25200 # Node ID 875b054e5b9530d8a245bf2f4e24eaa8e3dadac3 # Parent 22371eabb3b19a1659b5c1c018112d0b24872018 gitweb: preserve whitespace in description Without this, multiple spaces or tabs in the commit message aren't preserved and things like tables don't align properly. As part of adding the CSS rule, we had to cuddle the content with the
to not introduce leading and trailing whitespace. The "addbreaks" filter was also removed because it would insert an additional newline, effectively double spacing content. Differential Revision: https://phab.mercurial-scm.org/D113 diff -r 22371eabb3b1 -r 875b054e5b95 mercurial/templates/gitweb/changelogentry.tmpl --- a/mercurial/templates/gitweb/changelogentry.tmpl Mon Jul 17 11:45:38 2017 -0700 +++ b/mercurial/templates/gitweb/changelogentry.tmpl Mon Jul 17 15:54:15 2017 -0700 @@ -7,8 +7,6 @@
{author|obfuscate} [{date|rfc822date}] rev {rev}
-
-{desc|strip|escape|websub|addbreaks|nonempty} -
-
+
{desc|strip|escape|websub|nonempty} +
diff -r 22371eabb3b1 -r 875b054e5b95 mercurial/templates/gitweb/changeset.tmpl --- a/mercurial/templates/gitweb/changeset.tmpl Mon Jul 17 11:45:38 2017 -0700 +++ b/mercurial/templates/gitweb/changeset.tmpl Mon Jul 17 15:54:15 2017 -0700 @@ -45,9 +45,7 @@ {child%changesetchild}
-
-{desc|strip|escape|websub|addbreaks|nonempty} -
+
{desc|strip|escape|websub|nonempty}
diff -r 22371eabb3b1 -r 875b054e5b95 mercurial/templates/gitweb/fileannotate.tmpl --- a/mercurial/templates/gitweb/fileannotate.tmpl Mon Jul 17 11:45:38 2017 -0700 +++ b/mercurial/templates/gitweb/fileannotate.tmpl Mon Jul 17 15:54:15 2017 -0700 @@ -61,9 +61,7 @@
-
-{desc|strip|escape|websub|addbreaks|nonempty} -
+
{desc|strip|escape|websub|nonempty}
-
-{desc|strip|escape|websub|addbreaks|nonempty} -
+
{desc|strip|escape|websub|nonempty}