[PATCH] templates/submission: Fix alignment of commit message

Thomas Monjalon thomas at monjalon.net
Fri Aug 16 17:20:28 AEST 2024


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.

Fixes: fe34ab2ffad3 ("patch-detail: left align message headers")

Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
 patchwork/templates/patchwork/submission.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html
index 85e7be4b..e924934f 100644
--- a/patchwork/templates/patchwork/submission.html
+++ b/patchwork/templates/patchwork/submission.html
@@ -262,7 +262,7 @@
     <span class="message-date">{{ submission.date }} UTC</span>
   </div>
   <pre class="content">
-  {{ submission|commentsyntax }}
+{{ submission|commentsyntax }}
   </pre>
 </div>
 
-- 
2.46.0



More information about the Patchwork mailing list