emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* left padding added each time a code block is edited
@ 2014-08-07 22:18 Noah Hoffman
  2014-08-07 22:41 ` Thorsten Jolitz
  2014-08-08 15:34 ` Achim Gratz
  0 siblings, 2 replies; 6+ messages in thread
From: Noah Hoffman @ 2014-08-07 22:18 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

Each time I edit a code block using =C-c '= (org-edit-special) and then
return to the org-mode buffer, two spaces are added to the left margin of
the code. For example,

#+BEGIN_SRC python
print "hello"
#+END_SRC

becomes

#+BEGIN_SRC python
  print "hello"
#+END_SRC

after one round-trip. This is particularly problematic for python code
blocks since leading whitespace is meaningful.

This is behavior that has been present in org-mode for so long that I
suspect that it's not a bug - but I'd love to know how to disable it.

Thanks a lot,
Noah

[-- Attachment #2: Type: text/html, Size: 863 bytes --]

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

end of thread, other threads:[~2014-08-08 15:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-07 22:18 left padding added each time a code block is edited Noah Hoffman
2014-08-07 22:41 ` Thorsten Jolitz
2014-08-07 23:08   ` Fwd: " Noah Hoffman
2014-08-08 13:47     ` Rasmus
2014-08-08 15:51       ` Noah Hoffman
2014-08-08 15:34 ` Achim Gratz

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).