Back to Line
hamzaNb98 opened this issue · 1 comments
hamzaNb98 commented
who can I add multiple lines, Like this :
new_note = notesapp.make_note(
name="New Note",
body="This is a new note created with #macnotesapp \n This is a second Line"
)
RhetTbull commented
The body is html so you need to use '
'
Here's what the notes add
command does:
body = "".join(f"<div>{line or '<br>'}</div>\n" for line in body.split("\n"))
I'll add a note to the docs. Might be good to a format=
argument to allow use of plain text, HTML, or Markdown