Skip to content

Commit

Permalink
♿ [#5047] Removing whitespace from pdf title
Browse files Browse the repository at this point in the history
Without the `spaceless` tags the pdf will be generated with leading and trailing whitespace. This whitespace only visible/noticeable when you look at the title in the pdf metadata.
  • Loading branch information
robinmolen committed Feb 24, 2025
1 parent ea4b733 commit c2c4ddb
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
<html lang="{{ LANG }}" class="{{ theme.get_classname }}">
<head>
<meta charset="utf-8">
<title>{% block title %}
{% blocktrans with form_name=report.form.name trimmed %}
{{ form_name }}: PDF report
{% endblocktrans %}
{% endblock %}</title>
<title>{% spaceless %}
{% block title %}
{% blocktrans with form_name=report.form.name trimmed %}
{{ form_name }}: PDF report
{% endblocktrans %}
{% endblock %}
{% endspaceless %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{% static 'bundles/pdf-css.css' %}" media="all" rel="stylesheet" />
{% block extra_css %}{% endblock %}
Expand Down

0 comments on commit c2c4ddb

Please sign in to comment.