[Python-checkins] cpython (3.4): remove script from epub (closes #26172)

benjamin.peterson python-checkins at python.org
Thu Jan 21 01:03:42 EST 2016


https://hg.python.org/cpython/rev/562179b7912f
changeset:   100008:562179b7912f
branch:      3.4
parent:      99987:3b2910d2225d
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Jan 20 22:02:30 2016 -0800
summary:
  remove script from epub (closes #26172)

files:
  Doc/tools/templates/layout.html |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html
--- a/Doc/tools/templates/layout.html
+++ b/Doc/tools/templates/layout.html
@@ -18,7 +18,7 @@
     <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
     {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
     {% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %}
-    {% if pagename == 'whatsnew/changelog' %}
+    {% if pagename == 'whatsnew/changelog' and not embedded %}
     <script type="text/javascript">
       $(document).ready(function() {
           // add the search form and bind the events

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list