Skip to content

Commit 04ca73b

Browse files
committed
web: highlight email quotes in patch comments
Patch detail comments render their content as plain text, unlike cover letter comments which use highlightMessage(). Apply the same highlighting so that email quotes, trailers and diffstats are properly colored. Signed-off-by: Robin Jarry <robin@jarry.cc>
1 parent 0d6e6fe commit 04ca73b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/web/patch.templ

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ templ patchDetailPage(d patchDetailData) {
299299
}
300300
</comment-header>
301301
if c.Content != nil {
302-
<pre>{ *c.Content }</pre>
302+
<pre>
303+
@templ.Raw(highlightMessage(*c.Content))
304+
</pre>
303305
}
304306
</article>
305307
}

0 commit comments

Comments
 (0)