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

Unified Diff: third_party/handlebar/handlebar.py

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handlebar 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
Index: third_party/handlebar/handlebar.py
diff --git a/third_party/handlebar/handlebar.py b/third_party/handlebar/handlebar.py
index 2d03e422a82c704ed34972a97bf2664000755397..bce7daed847ed1281e7b9cf68e07f23bf5dc51b6 100644
--- a/third_party/handlebar/handlebar.py
+++ b/third_party/handlebar/handlebar.py
@@ -592,8 +592,8 @@ class Handlebar(object):
""" A handlebar template.
"""
def __init__(self, template):
- self.source = template
- tokens = TokenStream(template)
+ self.source = unicode(template, 'utf-8')
cduvall 2012/07/23 21:04:20 This fix makes it render the footer, but this migh
not at google - send to devlin 2012/07/24 01:23:31 Yeah; as discussed in IRC, let's fix this at the F
cduvall 2012/07/24 21:22:46 Done.
+ tokens = TokenStream(self.source)
self._topNode = self._parseSection(tokens)
if not self._topNode:
raise ParseException("Template is empty", tokens.nextLine)

Powered by Google App Engine
This is Rietveld 408576698