Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back to Line #37

Open
hamzaNb98 opened this issue Oct 6, 2023 · 1 comment
Open

Back to Line #37

hamzaNb98 opened this issue Oct 6, 2023 · 1 comment

Comments

@hamzaNb98
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants