]> piware.de Git - bin.git/commitdiff
workitems.py: fix </p> parsing harder
authormartin@piware.de <>
Wed, 5 Aug 2009 11:52:52 +0000 (12:52 +0100)
committermartin@piware.de <>
Wed, 5 Aug 2009 11:52:52 +0000 (12:52 +0100)
workitems.py

index f28db44153602ee3079ab5464d6bdd089904ee35..6e0108044895c6689e2bb0a3067717654f5cabb3 100755 (executable)
@@ -101,8 +101,7 @@ def get_blueprint_workitems(blueprint_url):
             end = True
         l = l.replace('<br />', '').replace('</div>', '').replace('</p>', '').strip()
 
-        # ends with empty line
-        if end or not l:
+        if not l:
             break
 
         try:
@@ -124,6 +123,9 @@ def get_blueprint_workitems(blueprint_url):
             continue
         result.append((desc, state))
 
+        if end:
+            break
+
     return result
 
 def get_moin_workitems(url):