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('Unmatched </if>') |
| return str |
| condition_satisfied = IsConditionSatisfied(begin_if) |