Bug#918672: [vim] XML auto indentation misbehaves (adds/removes additonal/wrong indentation)
--- Please enter the report below this line. ---
Since the last update to vim, the XML auto indentation seems to be
broken and is misbehaving.
This bug needs vim-nox, vim-athena or similar to appear. I.e. something
where automatic XML-indentation works out of the box.
Every time a tag is closed or return is pressed after a closing '>', vim
indents the line one more step without taking the actual indentation
This only affects non-root nodes. (so all nodes except the very outer node)
- create a file with an .xml extension (e.g. 'vi /tmp/tmp.xml'), so the
XML indentation is used.
- create a root node
- add another node
- while entering the closing '>', the node is indented one additional step.
- when pressing return after the closing '>' the node is indented
another additional step.
- insert the closing tag in the new line. '</other>'
- after entering the closing tags '>' the tag is indented one step back.
(- pressing return/adding another line break after the closing tag again
removes another level of indentation)
The resulting buffer looks something like this:
I would expect:
--- System information. ---
Architecture: Kernel: Linux 4.19.0-1-amd64
On Tue, Sep 03, 2019 at 01:49:05PM +0200, Thibault Roulet wrote:
> Experiencing the same kind of problems with bash scripts.
> Indentation is working fine under stretch but got some problems under buster.
> Should I open a new case ?
It's unlikely to get fixed in Buster, but yes bash and XML are
completely different indent mechanisms so they should have separate