8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
None
''
Sphinx.add_js_file()
1 parent b151aa1 commit 13d2899Copy full SHA for 13d2899
CHANGES.rst
@@ -17,6 +17,7 @@ Bugs fixed
17
----------
18
19
* #13392: Fix argument type for ``jieba.load_userdict()``.
20
+* #13402: Ensure inline ``<script>`` tags are written exactly once.
21
22
Testing
23
-------
sphinx/application.py
@@ -1507,6 +1507,7 @@ def add_js_file(
1507
elif loading_method == 'defer':
1508
kwargs['defer'] = 'defer'
1509
1510
+ filename = filename or ''
1511
self.registry.add_js_file(filename, priority=priority, **kwargs)
1512
with contextlib.suppress(AttributeError):
1513
self.builder.add_js_file( # type: ignore[attr-defined]
0 commit comments