I am creating a database in confluence that will track specific Customer Service tickets.
One of the things I wanted to include in the database was the comments on jira tickets as we were copying customer responses into the comments. Unfortunately it looks like the jira issue field for comment doesn't populate anything

So instead I created a custom field that has a Smart Value automation based off this doc so that every time there is a new comment it runs
{{#issue.comments}}
Comment by: {{author.displayName}} at: {{created.shortDateTime}}
{{body}}
{{/}}
But when I actually run the script it makes it all the comments into one continuous line that is very hard to read. What can I do to format it to be more legible? For now I just added a line of equal signs to break up the text but I would like to use a more proper solution
