]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
templates/submission: Fix alignment of commit message
authorThomas Monjalon <thomas@monjalon.net>
Fri, 16 Aug 2024 07:20:28 +0000 (09:20 +0200)
committerStephen Finucane <stephen@that.guru>
Thu, 31 Oct 2024 22:07:50 +0000 (22:07 +0000)
Preformatted content must not be indented
because any space is kept in the output,
making the content wrongly indented.

When aligning message headers to the left,
the new HTML code has been indented
including some preformatted content indented with two spaces.

The fix is to remove the indent of the content.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Fixes: fe34ab2ffad3 ("patch-detail: left align message headers")
Reviewed-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/templates/patchwork/submission.html

index 85e7be4b400ecbb55b140280de03df92f37a8ccf..e924934f66b43f163cf47e8e25d6b2c13f5c5dcc 100644 (file)
     <span class="message-date">{{ submission.date }} UTC</span>
   </div>
   <pre class="content">
-  {{ submission|commentsyntax }}
+{{ submission|commentsyntax }}
   </pre>
 </div>