From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noah Hoffman Subject: left padding added each time a code block is edited Date: Thu, 7 Aug 2014 15:18:32 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0444808d4884630500117990 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFW1P-0006Ba-CS for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 18:18:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFW1O-0000e0-HP for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 18:18:55 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:46915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFW1O-0000dg-9W for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 18:18:54 -0400 Received: by mail-wg0-f42.google.com with SMTP id l18so4718118wgh.13 for ; Thu, 07 Aug 2014 15:18:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --f46d0444808d4884630500117990 Content-Type: text/plain; charset=UTF-8 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 --f46d0444808d4884630500117990 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Each time I edit a code block us= ing =3DC-c '=3D (org-edit-special) and then return to the org-mode buff= er, two spaces are added to the left margin of the code. For example,
=

#+BEGIN_SRC python
print "hello"
#+END_SRC

becomes

#+BEGIN_SRC python
=C2=A0 print "hello"
#+END_SRC

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

This is behavior that has been prese= nt in org-mode for so long that I suspect that it's not a bug - but I&#= 39;d love to know how to disable it.

Thanks a lot,
Noah
--f46d0444808d4884630500117990--