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

Unified Diff: tools/grit/grit/format/rc.py

Issue 2872028: Modified grit to support <if expr="..."> tags within included html files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « tools/grit/grit/format/html_inline.py ('k') | tools/grit/grit/format/rc_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/rc.py
===================================================================
--- tools/grit/grit/format/rc.py (revision 51538)
+++ tools/grit/grit/format/rc.py (working copy)
@@ -150,7 +150,7 @@
if _LANGUAGE_DIRECTIVE_PAIR.has_key(language) :
return _LANGUAGE_DIRECTIVE_PAIR[language]
else :
- print 'Warning:GetLangDirectivePair() found undefined language %s' %(language)
+ print 'Warning:GetLangDirectivePair() found undefined language %s' % (language)
return 'unknown language: see tools/grit/format/rc.py'
def GetLangIdHex(language) :
@@ -427,7 +427,7 @@
if self.flatten_html:
# Generate the flattened HTML file.
flat_filename = os.path.join(output_dir, os.path.basename(filename))
- html_inline.InlineFile(filename, flat_filename)
+ html_inline.InlineFile(filename, flat_filename, item)
# Include the flattened HTML file.
filename = os.path.basename(filename)
« no previous file with comments | « tools/grit/grit/format/html_inline.py ('k') | tools/grit/grit/format/rc_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698