Skip to content

Commit

Permalink
2054-fix meta property og:description
Browse files Browse the repository at this point in the history
fixes #2054 by trimming whitespace
  • Loading branch information
jqnatividad committed Nov 17, 2014
1 parent 4e9fbf7 commit 5a3cd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/package/read_base.html
Expand Up @@ -11,7 +11,7 @@
{{ super() }}
{% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %}
<meta property="og:title" content="{{ h.dataset_display_name(pkg) }} - {{ g.site_title }}">
<meta property="og:description" content="{{ description|forceescape }}">
<meta property="og:description" content="{{ description|forceescape|trim }}">
{% endblock -%}

{% block content_action %}
Expand Down

0 comments on commit 5a3cd39

Please sign in to comment.