diff mercurial/templates/gitweb/fileannotate.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 1c97df5e3b46
children 6797f1fbc642
line wrap: on
line diff
--- 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 @@
 </table>
 </div>
 
-<div class="page_path description">
-{desc|strip|escape|websub|addbreaks|nonempty}
-</div>
+<div class="page_path description">{desc|strip|escape|websub|nonempty}</div>
 <div class="page_body">
 <table>
 <tbody class="sourcelines"