diff --git a/sphinx/websupport/__init__.py b/sphinx/websupport/__init__.py index de719e36d..343928135 100644 --- a/sphinx/websupport/__init__.py +++ b/sphinx/websupport/__init__.py @@ -139,12 +139,13 @@ class WebSupport(object): 'The document "%s" could not be found' % docname) document = pickle.load(f) - document['COMMENT_OPTIONS'] = self._make_comment_options(username, - moderator) + comment_opts = self._make_comment_options(username, moderator) + document['js'] = comment_opts + '\n' + document['js'] return document def _make_comment_options(self, username, moderator): - parts = ['var COMMENT_OPTIONS = {'] + parts = ['') return '\n'.join(parts) def get_search_results(self, q):