#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:
Georg Brandl 2008-11-16 10:31:31 +01:00
parent 516cc73450
commit b13735f75e
3 changed files with 8 additions and 5 deletions

View File

@ -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.

View File

@ -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>

View File

@ -6,5 +6,5 @@
<Url type="text/html" method="get"
template="{{ use_opensearch }}/{{ pathto('search') }}?q={searchTerms}&amp;check_keywords=yes&amp;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>