Chromium Code Reviews| Index: grit/format/html_inline.py |
| =================================================================== |
| --- grit/format/html_inline.py (revision 188) |
| +++ grit/format/html_inline.py (working copy) |
| @@ -184,6 +184,8 @@ |
| while True: |
| begin_if = _BEGIN_IF_BLOCK.search(str) |
| if begin_if is None: |
| + if _END_IF_BLOCK.search(str) is not None: |
| + raise Exception('Unexpected </if>') |
|
Nico
2015/03/26 17:58:56
Should this be 'Unmatched </if>' to match the simi
|
| return str |
| condition_satisfied = IsConditionSatisfied(begin_if) |