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)
| 682 | // tombstone (BUG-3252), whose body is empty and whose replies are still |
| 683 | // listed. |
| 684 | func CommentBodyForDisplay(c models.Comment) string { |
| 685 | if c.Deleted { |
| 686 | return "(deleted)" |
| 687 | } |
| 688 | return c.Body |
| 689 | } |
| 690 | |
| 691 | func PrintCommentTable(comments []models.Comment) { |
| 692 | if len(comments) == 0 { |
no outgoing calls
no test coverage detected