jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 57 forks source link

org-msg swallowing newlines #123

Closed jsilve24 closed 3 years ago

jsilve24 commented 3 years ago

I would like to have a simple email signature as a yassnippet (worked great in basic mu4e), it looked something like:

jsilve24
Title blah blah blah
Office location

E my email
T my phone number
W my website

But with org-msg this the newlines are not respected and this gets compacted to

jsilve24 Title blah blah blah Office location

E my email T my phone number W my website

Whats the best way to handle this? Is this a bug or is there some option I am missing?

Thank you very much!

jeremy-compostella commented 3 years ago

This is not a OrgMsg issue, this is Emacs org mode default behavior. You can customize this behavior. In the documentation of OrgMsg you'll find my default configuration with an option taking care of this (see my org-msg-options value)

jsilve24 commented 3 years ago

Oh wonderful!

Thank you and appologies for the off topic question.

Is that the \n:t flag by any chance? I had tried playing around with various settings in your configuration but must have missed the crucial one.

jsilve24 commented 3 years ago

Ahhh. when you want to paste it into the org-msg header you don't need the extra escape on the backslash.

\n:t worked as expected. Thank you!