Browse Source

Trim function result properly.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
ffbff35b28
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/index.mako

+ 2
- 2
templates/index.mako View File

@@ -116,9 +116,9 @@
% endif % endif
</%def> </%def>
% if result.violation: % if result.violation:
<h2 id="cv-result-header">${get_page_link()} is a suspected violation of <a href="${result.url | h}">${result.url | urlstrip, h}</a>.</h2>
<h2 id="cv-result-header">${get_page_link() | trim} is a suspected violation of <a href="${result.url | h}">${result.url | urlstrip, h}</a>.</h2>
% else: % else:
<h2 id="cv-result-header">No violations detected in ${get_page_link()}.</h2>
<h2 id="cv-result-header">No violations detected in ${get_page_link() | trim}.</h2>
% endif % endif
<ul id="cv-result-list"> <ul id="cv-result-list">
% if not result.violation and not query.url: % if not result.violation and not query.url:


Loading…
Cancel
Save