Skip to content

generate_man: Prevent sibling node loss in man page generation#1458

Merged
sirainen merged 1 commit intodovecot:release-3.1.4from
slusarz:release-3.1.4_manpage_sibling_loss
Mar 10, 2026
Merged

generate_man: Prevent sibling node loss in man page generation#1458
sirainen merged 1 commit intodovecot:release-3.1.4from
slusarz:release-3.1.4_manpage_sibling_loss

Conversation

@slusarz
Copy link
Contributor

@slusarz slusarz commented Mar 10, 2026

release-3.1.4 cherry-pick

Parent's children array was being replaced entirely with the processed
nodes of a single child, causing all sibling nodes to be discarded.

Use `splice` to insert the processed nodes into the parent's children
array in place, preserving siblings.

Example diff (doveadm-who.1):

< Global doveadm(1)
---
> Global doveadm(1) \fIoptions\fR:
28c28
< Do not read any config file, just use defaults. The \fBdovecot_storage_version\fR setting defaults to the latest version, but can be overridden with
---
> Do not read any config file, just use defaults. The \fBdovecot_storage_version\fR setting defaults to the latest version, but can be overridden with \fB-o\fR.
150c150
< By default doveadm(1) will use the socket
---
> By default doveadm(1) will use the socket \fI/rundir/anvil\fR. The socket may be located in another directory, when the default \fIbase_dir\fR setting was overridden in \fI/etc/dovecot/dovecot.conf\fR.
@sirainen sirainen merged commit 0318eb1 into dovecot:release-3.1.4 Mar 10, 2026
5 checks passed
@slusarz slusarz deleted the release-3.1.4_manpage_sibling_loss branch March 11, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants