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

All content indentation lost on write #47

Open
chrisberkhout opened this issue Feb 19, 2017 · 1 comment
Open

All content indentation lost on write #47

chrisberkhout opened this issue Feb 19, 2017 · 1 comment
Labels

Comments

@chrisberkhout
Copy link

chrisberkhout commented Feb 19, 2017

When a change is made, indentation is lost for the whole file. This is particularly disruptive for SRC and EXAMPLE blocks.

For example, when starting with:

* Top
** First
Content unindented
  Indented 2
    Indented 4
** Second
   Content indented
     Indented 2 more
       Indented 4 more
** Third
#+BEGIN_EXAMPLE
=============================
Example unindented
  Indented 2
    Indented 4
=============================
#+END_EXAMPLE
** Fourth
  #+BEGIN_EXAMPLE
  =============================
  Example indented
    Indented 2 more
      Indented 4 more
  =============================
  #+END_EXAMPLE

Adding a new child under Top updates the file to:

* Top
** New child of Top
** First
   Content unindented
   Indented 2
   Indented 4
** Second
   Content indented
   Indented 2 more
   Indented 4 more
** Third
   #+BEGIN_EXAMPLE
   =============================
   Example unindented
   Indented 2
   Indented 4
   =============================
   #+END_EXAMPLE
** Fourth
   #+BEGIN_EXAMPLE
   =============================
   Example indented
   Indented 2 more
   Indented 4 more
   =============================
   #+END_EXAMPLE
@wizmer
Copy link
Owner

wizmer commented Feb 21, 2017

OK. Fixed for next version.

@wizmer wizmer added the bug label Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants