Fix warning interpolation for multiple patterns matches in `html_sidebars`

This commit is contained in:
Adam Turner 2025-02-10 15:48:12 +00:00
parent d160f3179b
commit a9534901a2

View File

@ -1055,7 +1055,7 @@ class StandaloneHTMLBuilder(Builder):
if matched and has_wildcard(pattern):
# warn if both patterns contain wildcards
if has_wildcard(matched):
logger.warning(msg, pagename, matched)
logger.warning(msg, pagename, matched, pattern)
# else the already matched pattern is more specific
# than the present one, because it contains no wildcard
continue