If a <replacable> tag is nested inside of an <optional> tag the formatting of the closing ] brace is broken. This patch tries to conditionally restore the formatting after <replace> that corresponds to the parent element.
So I realized that this patch is unfortunately not only solving the described problem but destroying the layout in bigger man pages. Since I am not familiar with xslt I don't know where to fix this problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This minimal example can reproduce the described behavior.
So I realized that this patch is unfortunately not only solving the described problem but destroying the layout in bigger man pages. Since I am not familiar with xslt I don't know where to fix this problem.