Skip to content

Commit

Permalink
fix missing underscore
Browse files Browse the repository at this point in the history
fix missing reverting when adding css files via app.add_css_file in a html-page-context event
  • Loading branch information
Malte Bonart committed May 4, 2021
1 parent cfb9183 commit a7c5a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/builders/html/__init__.py
Expand Up @@ -1026,7 +1026,7 @@ def hasdoc(name: str) -> bool:

# revert script_files and css_files
self.script_files[:] = self._script_files
self.css_files[:] = self.css_files
self.css_files[:] = self._css_files

self.update_page_context(pagename, templatename, ctx, event_arg)
newtmpl = self.app.emit_firstresult('html-page-context', pagename,
Expand Down

0 comments on commit a7c5a3a

Please sign in to comment.