Skip to content

Commit a953490

Browse files
committed
Fix warning interpolation for multiple patterns matches in html_sidebars
1 parent d160f31 commit a953490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/builders/html/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def has_wildcard(pattern: str) -> bool:
10551055
if matched and has_wildcard(pattern):
10561056
# warn if both patterns contain wildcards
10571057
if has_wildcard(matched):
1058-
logger.warning(msg, pagename, matched)
1058+
logger.warning(msg, pagename, matched, pattern)
10591059
# else the already matched pattern is more specific
10601060
# than the present one, because it contains no wildcard
10611061
continue

0 commit comments

Comments
 (0)