>From fd9dd07a5559d812cbcac671caa98f74f6bd1d4f Mon Sep 17 00:00:00 2001
From: Jeroen van der Gun <jeroen@blijbol.nl>
Date: Fri, 15 Jul 2011 10:28:36 +0200
Subject: [PATCH 2/2] Fix typo

---
 makelibrary.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/makelibrary.py b/makelibrary.py
index 7fe6bfd..705d86c 100644
--- a/makelibrary.py
+++ b/makelibrary.py
@@ -17,8 +17,8 @@ with open(os.path.join(directory, 'src/chrome/content/rules/default.rulesets'),
     if j == -1: # if no tag found
      break # no more tags
     if xml[j+1:j+4] == '!--': # if the tag is a comment
-     i = xml.find('-->', j) # jump over the comment
-     assert i != -1
+     i = xml.find('-->', j) + 3 # jump over the comment
+     assert i != 2
     else:
      i = xml.find('>', j) + 1 # jump over the tag
      assert i != 0
-- 
1.7.3.1.msysgit.0

