MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / CommentBodyForDisplay

Function CommentBodyForDisplay

internal/cli/format.go:684–689  ·  view source on GitHub ↗

PrintCommentTable prints comments in a formatted table. PrintCommentTable deliberately does NOT render Comment.AgentName (TASK-2760). The name is self-declared client text; the web surfaces isolate it in its own element so a bidi control or lookalike cannot redraw the author, source or timestamp bes

(c models.Comment)

Source from the content-addressed store, hash-verified

682// tombstone (BUG-3252), whose body is empty and whose replies are still
683// listed.
684func CommentBodyForDisplay(c models.Comment) string {
685 if c.Deleted {
686 return "(deleted)"
687 }
688 return c.Body
689}
690
691func PrintCommentTable(comments []models.Comment) {
692 if len(comments) == 0 {

Callers 2

renderCommentsMarkdownFunction · 0.92
PrintCommentTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected