* deleting trailing whitespace can change org structure
@ 2018-07-21 23:39 Samuel Wales
0 siblings, 0 replies; only message in thread
From: Samuel Wales @ 2018-07-21 23:39 UTC (permalink / raw)
To: emacs-orgmode
just a heads up on something that is kind of obvious, but just in case:
a blogger recommend delete-trailing-whitespace [in a tangling init,
thus heavy org use]. many likely do this and whitespace-cleanup. he
recommended it on a save hook.
the problem for org is if you have a header like "^****** $".
deleting trailing whitespace will make those headers become text under
the previous header.
some people habitually do a sequential m-ret to create blank headers
to fill in. this was recommended in an org tutorial or so.
blank headers are likely to be created by accident. it is possible
that this corruption occurs without the user knowing. especially
using a save hook or when there are a lot of lines to fix.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-21 23:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-21 23:39 deleting trailing whitespace can change org structure Samuel Wales
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.