emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* What is the purpose of \\ in org-add-note?
@ 2023-10-29 21:13 Karthik Chikmagalur
  2023-10-30  0:18 ` Suhail Singh
  0 siblings, 1 reply; 4+ messages in thread
From: Karthik Chikmagalur @ 2023-10-29 21:13 UTC (permalink / raw)
  To: emacs-orgmode

When I add a note to an entry (from Org agenda, say), it adds a \\ at
the end of the note line heading. Example:

- Note taken on [2021-03-01 Mon 20:44] \\
  Done. Check =ffmpeg-dispatch-load= and =ffmpeg-dispatch-save=.
  
The addition of this suffix is hardcoded in `org-store-log-note'. What
is its purpose?

Karthik


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What is the purpose of \\ in org-add-note?
  2023-10-29 21:13 What is the purpose of \\ in org-add-note? Karthik Chikmagalur
@ 2023-10-30  0:18 ` Suhail Singh
  2023-10-30  2:01   ` Karthik Chikmagalur
  0 siblings, 1 reply; 4+ messages in thread
From: Suhail Singh @ 2023-10-30  0:18 UTC (permalink / raw)
  To: Karthik Chikmagalur; +Cc: emacs-orgmode

Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:

> When I add a note to an entry (from Org agenda, say), it adds a \\ at
> the end of the note line heading.
>
> What is its purpose?

It ensures a line break (say, when the document is exported). From the
[[info:org#Paragraphs][org#Paragraphs]] section in the manual:

#+begin_quote
Paragraphs are separated by at least one empty line.  If you need to
enforce a line break within a paragraph, use ‘\\’ at the end of a line.
#+end_quote

-- 
Suhail


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What is the purpose of \\ in org-add-note?
  2023-10-30  0:18 ` Suhail Singh
@ 2023-10-30  2:01   ` Karthik Chikmagalur
  2023-10-30  5:39     ` tomas
  0 siblings, 1 reply; 4+ messages in thread
From: Karthik Chikmagalur @ 2023-10-30  2:01 UTC (permalink / raw)
  To: Suhail Singh; +Cc: emacs-orgmode

> It ensures a line break (say, when the document is exported). From the
> [[info:org#Paragraphs][org#Paragraphs]] section in the manual:
>
> #+begin_quote
> Paragraphs are separated by at least one empty line.  If you need to
> enforce a line break within a paragraph, use ‘\\’ at the end of a line.
> #+end_quote

Good to know, thank you.

Karthik


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What is the purpose of \\ in org-add-note?
  2023-10-30  2:01   ` Karthik Chikmagalur
@ 2023-10-30  5:39     ` tomas
  0 siblings, 0 replies; 4+ messages in thread
From: tomas @ 2023-10-30  5:39 UTC (permalink / raw)
  To: Karthik Chikmagalur; +Cc: Suhail Singh, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

On Sun, Oct 29, 2023 at 07:01:53PM -0700, Karthik Chikmagalur wrote:
> > It ensures a line break (say, when the document is exported). From the
> > [[info:org#Paragraphs][org#Paragraphs]] section in the manual:
> >
> > #+begin_quote
> > Paragraphs are separated by at least one empty line.  If you need to
> > enforce a line break within a paragraph, use ‘\\’ at the end of a line.
> > #+end_quote
> 
> Good to know, thank you.

It is stolen from LaTeX, see,e.g. [1].

(it was difficult to find a ref which is *not* stackoverflow
and its ilk, sigh)

Cheers

[1] http://www.emerson.emory.edu/services/latex/latex_101.html#SEC101
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-30  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-29 21:13 What is the purpose of \\ in org-add-note? Karthik Chikmagalur
2023-10-30  0:18 ` Suhail Singh
2023-10-30  2:01   ` Karthik Chikmagalur
2023-10-30  5:39     ` tomas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).