summaryrefslogtreecommitdiffstats
path: root/tools/grit
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-04 19:51:17 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-04 19:51:17 +0000
commitb0266b9526779810bce675fb55b78287bb01955b (patch)
tree943704d7ce5bee709223092b12cc811b45f8217e /tools/grit
parentba4f2a1ec1d2318847b6ee65ae1e8ee52ed234da (diff)
downloadchromium_src-b0266b9526779810bce675fb55b78287bb01955b.zip
chromium_src-b0266b9526779810bce675fb55b78287bb01955b.tar.gz
chromium_src-b0266b9526779810bce675fb55b78287bb01955b.tar.bz2
html_inline.py: update comments to match reality, fix a small typo
Though the comments say it doesn't inline CSS, it actually does; I also noticed there's a typo in the CSS-inlining regex. Review URL: http://codereview.chromium.org/6057007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/grit')
-rwxr-xr-xtools/grit/grit/format/html_inline.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/grit/grit/format/html_inline.py b/tools/grit/grit/format/html_inline.py
index 71d0f68..9979bca 100755
--- a/tools/grit/grit/format/html_inline.py
+++ b/tools/grit/grit/format/html_inline.py
@@ -9,8 +9,7 @@ This is a small script that takes a HTML file, looks for src attributes
and inlines the specified file, producing one HTML file with no external
dependencies.
-This does not inline CSS styles, nor does it inline anything referenced
-from an inlined file.
+This does not inline anything referenced from an inlined file.
"""
import os
@@ -173,7 +172,7 @@ def InlineFile(input_filename, output_filename, grd_node):
ReadFile(input_filename))
flat_text = re.sub(
- '<link rel="stylesheet".+?href="(?P<filename>[^"\']*)".*?>',
+ '<link rel="stylesheet".+?href="(?P<filename>[^"]*)".*?>',
InlineCSSFile,
flat_text)