]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: fix display of keys which appear in two sections in directive index
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2013 02:31:20 +0000 (22:31 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2013 04:43:38 +0000 (00:43 -0400)
commit827f70eb764428baa397e9f3e295c470a1fd43e6
treeb4e5221960a58e33fc79d4de38cf2548fafd4e14
parent310b59edcf0a98343425a47ea5835fc670c0cda3
man: fix display of keys which appear in two sections in directive index

When an index key appeared in multiple sections (e.g.
CPUAffinity= was present in both "SYSTEM MANAGER DIRECTIVES"
and "UNIT DIRECTIVES"), when lxml was used, the key would
be not be displayed in all but one of those sections, and
only an empty <term/> element would be present. This
happens because lxml allows only one parent for each node,
and when the same formatted element was used in multiple places,
it was actually moved between them. Fix this by making a copy
of the element. The bug was present since lxml support was
introduced.

Also fix some indentation issues.
make-directive-index.py