Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

All content indentation lost on write #47

@chrisberkhout

Description

@chrisberkhout

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions