Chromium Code Reviews| 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) |