diff mercurial/templates/gitweb/changeset.tmpl @ 33557:875b054e5b95

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 <div> 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
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 17 Jul 2017 15:54:15 -0700
parents 2d93d2159e30
children f9b23fa35cb3
line wrap: on
line diff
--- 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}
 </table></div>
 
-<div class="page_body description">
-{desc|strip|escape|websub|addbreaks|nonempty}
-</div>
+<div class="page_body description">{desc|strip|escape|websub|nonempty}</div>
 <div class="list_head"></div>
 <div class="title_text">
 <table cellspacing="0">