mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#39: spurious <generator ...> was emitted in HTML output. This is due to a
Jinja bug; the workaround is to just not use empty {% block %} tags.
This commit is contained in:
parent
516cc73450
commit
b13735f75e
3
CHANGES
3
CHANGES
@ -156,6 +156,9 @@ New features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* Work around a bug in Jinja that caused "<generator ...>" to be
|
||||
emitted in HTML output.
|
||||
|
||||
* Fix a problem with module links not being generated in LaTeX output.
|
||||
|
||||
* Fix the handling of images in different directories.
|
||||
|
@ -20,7 +20,7 @@
|
||||
{%- for parent in parents %}
|
||||
<li><a href="{{ parent.link|e }}" accesskey="U">{{ parent.title }}</a>{{ reldelim1 }}</li>
|
||||
{%- endfor %}
|
||||
{%- block relbaritems %}{% endblock %}
|
||||
{%- block relbaritems %} {% endblock %}
|
||||
</ul>
|
||||
</div>
|
||||
{%- endmacro %}
|
||||
@ -143,13 +143,13 @@
|
||||
<link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
|
||||
{%- endif %}
|
||||
{%- endblock %}
|
||||
{%- block extrahead %}{% endblock %}
|
||||
{%- block extrahead %} {% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{%- block relbar1 %}{{ relbar() }}{% endblock %}
|
||||
|
||||
{%- block sidebar1 %}{# possible location for sidebar #}{% endblock %}
|
||||
{%- block sidebar1 %} {# possible location for sidebar #} {% endblock %}
|
||||
|
||||
{%- block document %}
|
||||
<div class="document">
|
||||
@ -158,7 +158,7 @@
|
||||
<div class="bodywrapper">
|
||||
{%- endif %}
|
||||
<div class="body">
|
||||
{% block body %}{% endblock %}
|
||||
{% block body %} {% endblock %}
|
||||
</div>
|
||||
{%- if builder != 'htmlhelp' %}
|
||||
</div>
|
||||
|
@ -6,5 +6,5 @@
|
||||
<Url type="text/html" method="get"
|
||||
template="{{ use_opensearch }}/{{ pathto('search') }}?q={searchTerms}&check_keywords=yes&area=default"/>
|
||||
<LongName>{{ docstitle }}</LongName>
|
||||
{% block extra %}{# Put e.g. an <Image> element here. #}{% endblock %}
|
||||
{% block extra %} {# Put e.g. an <Image> element here. #} {% endblock %}
|
||||
</OpenSearchDescription>
|
||||
|
Loading…
Reference in New Issue
Block a user