Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/templateFilters.py

Issue 29345120: Noissue - Got rid of non-default script encodings (Closed)
Patch Set: Created May 28, 2016, 11:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/subscriptions/web/fallback.py ('k') | sitescripts/testpages/web/sitekey_frame.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/templateFilters.py
===================================================================
--- a/sitescripts/templateFilters.py
+++ b/sitescripts/templateFilters.py
@@ -1,5 +1,3 @@
-# coding: utf-8
-
# This file is part of the Adblock Plus web scripts,
# Copyright (C) 2006-2016 Eyeo GmbH
#
@@ -68,7 +66,7 @@
if parsed.scheme == 'http' or parsed.scheme == 'https':
url = Markup.escape(url)
title = Markup.escape(title)
- title = unicode(title).replace('*', '<span class="censored">*</span>').replace(u'…', u'<span class="censored">…</span>')
+ title = unicode(title).replace('*', '<span class="censored">*</span>').replace(u'\u2026', u'<span class="censored">\u2026</span>')
return Markup('<a href="%(url)s">%(title)s</a>' % {'url': url, 'title': title})
else:
return url
« no previous file with comments | « sitescripts/subscriptions/web/fallback.py ('k') | sitescripts/testpages/web/sitekey_frame.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld