Skip to content

Commit

Permalink
Ensure newlines are removed from summary
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Noble <[email protected]>
  • Loading branch information
AverageMarcus committed Jan 3, 2025
1 parent 69fb062 commit c71219f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/grist/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ func Import(entry *types.Entry) (*types.Entry, error) {
]
}`,
entry.URL,
entry.Title,
entry.Summary,
strings.ReplaceAll(entry.Title, "\n", "<br>"),
strings.ReplaceAll(entry.Summary, "\n", "<br>"),
entry.Byline,
entry.Category,
entry.Year,
entry.Month,
entry.AISummary,
strings.ReplaceAll(entry.AISummary, "\n", "<br>")
entry.Featured,
entry.Sponsored,
)
Expand Down

0 comments on commit c71219f

Please sign in to comment.