Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(889)

Unified Diff: grit/gather/chrome_html.py

Issue 10795081: Use ' instead of " when rewriting -webkit-image-set. (Closed) Base URL: http://grit-i18n.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grit/format/html_inline.py ('k') | grit/gather/chrome_html_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/gather/chrome_html.py
===================================================================
--- grit/gather/chrome_html.py (revision 57)
+++ grit/gather/chrome_html.py (working copy)
@@ -73,9 +73,9 @@
# Any matches for which a chrome URL handler will serve all scale factors
# can simply request all scale factors.
if _THEME_SOURCE.match(filename):
- images = ["url(\"%s\") %s" % (filename, '1x')]
+ images = ["url('%s') %s" % (filename, '1x')]
for sc in scale_factors:
- images.append("url(\"%s@%s\") %s" % (filename, sc, sc))
+ images.append("url('%s@%s') %s" % (filename, sc, sc))
return "%s: -webkit-image-set(%s" % (attr, ', '.join(images))
if filename.find(':') != -1:
@@ -84,7 +84,7 @@
filename = filename.replace(DIST_SUBSTR, distribution)
filepath = os.path.join(base_path, filename)
- images = ["url(\"%s\") %s" % (filename, '1x')]
+ images = ["url('%s') %s" % (filename, '1x')]
for sc in scale_factors:
# Check for existence of file and add to image set.
@@ -95,7 +95,7 @@
scale_image_name = re.sub('(?P<path>(.*/)?)(?P<file>[^/]*)',
'\\g<path>' + sc + '/\\g<file>',
filename)
- images.append("url(\"%s\") %s" % (scale_image_name, sc))
+ images.append("url('%s') %s" % (scale_image_name, sc))
return "%s: -webkit-image-set(%s" % (attr, ', '.join(images))
« no previous file with comments | « grit/format/html_inline.py ('k') | grit/gather/chrome_html_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698