matcornic / matcornic/hermes

Adding newline to Instructions: element

Open
#87 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

Hi,
First of all thank you for the package and community.

I just started exploring hermes. I am looking to add multiline message to email. In below code I tried using \n, \r,
\r\n between two sentences in the Instructions element. It does not add separate my two lines. Is there a way to do so?

Actions: []hermes.Action{
{
Instructions: "Google Groups automation just completed SUCCESSFULLY.\rTo view the logs, please click the View Log button.",

-Kamlesh

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the newline behavior with the Actions Instructions value shown in the issue, then trace how that field is rendered into the generated email. Confirm the expected behavior in both plain-text and HTML output, and consider the issue done when the two sentences appear on separate lines without breaking existing email formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.