From a7c5a3a88be040ebc6a921b96247c5528886c34b Mon Sep 17 00:00:00 2001 From: Malte Bonart Date: Mon, 3 May 2021 23:54:26 +0200 Subject: [PATCH] fix missing underscore fix missing reverting when adding css files via app.add_css_file in a html-page-context event --- sphinx/builders/html/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 87b9c5c4580..348914b4d34 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -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,