app-vim/gentoo-syntax uses tabs for indentation in metadata.xml. https://gitweb.gentoo.org/proj/gentoo-syntax.git/tree/ftplugin/gentoo-metadata.vim?h=gentoo-syntax-20200120#n16 It would be nice if emacs would do the same.
I would argue the other way around, Emacs uses two spaces, to Vim should do the same. :-) Two spaces is also what was always used for all XML documentation files. Anyway, every time this was mentioned in gentoo-dev in the past, there was no agreement. So the policy is to have no policy: https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/index.html#syntax
I don’t understand how we have a policy for white space in ebuilds, but not metadata.xml.
(In reply to Mike Gilbert from comment #2) > I don’t understand how we have a policy for white space in ebuilds, but not > metadata.xml. "My 2 cents: So long as it is a well-formed XML document and doesn't look horribly ugly in an editor, it really doesn't matter what we use, and I don't think we need a policy for it." https://archives.gentoo.org/gentoo-dev/message/7225591b720fee442f8d25c48489ff33 :)
I've made this configurable through the ebuild-mode-xml-indent-tabs variable some time ago: https://gitweb.gentoo.org/proj/ebuild-mode.git/commit/?id=54a775dc17a797414ee2c9a624decf0fa7d07e75 commit 54a775dc17a797414ee2c9a624decf0fa7d07e75 Author: Ulrich Müller <ulm@gentoo.org> Date: Sun Jun 5 11:44:21 2022 +0200 Indent XML with tabs or two spaces * ebuild-mode.el (ebuild-repo-mode): Indent XML with tabs or two spaces. Set indent-tabs-mode accordingly. (ebuild-mode-xml-indent-tabs): New custom variable. Signed-off-by: Ulrich Müller <ulm@gentoo.org>