Skip to content

Commit

Permalink
templates/submission: Fix alignment of commit message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: fe34ab2 ("patch-detail: left align message headers")
Reviewed-by: Robin Jarry <[email protected]>
Reviewed-by: Stephen Finucane <[email protected]>
(cherry picked from commit 13bbc0d)
  • Loading branch information
tmonjalo authored and stephenfin committed Oct 31, 2024
1 parent 0da3021 commit b35f6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patchwork/templates/patchwork/submission.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h2>Message</h2>
<span class="message-date">{{ submission.date }} UTC</span>
</div>
<pre class="content">
{{ submission|commentsyntax }}
{{ submission|commentsyntax }}
</pre>
</div>

Expand Down

0 comments on commit b35f6e3

Please sign in to comment.