Index: contrib/hook-scripts/svn2feed.py
===================================================================
--- contrib/hook-scripts/svn2feed.py	(revision 20824)
+++ contrib/hook-scripts/svn2feed.py	(working copy)
@@ -209,17 +209,17 @@
 
         total = 0
         for childNode in self.feed.childNodes:
-            # author is the last non-entry element. We insert the new
-            # element before its next sibling because it is obviously an
-            # 'entry' element. If there is no such element, then next
-            # sibling will be None and the element will be inserted
-            # after the 'author' element
-            if(childNode.nodeName == 'author'):
-                self.feed.insertBefore(item, childNode.nextSibling)
-            elif(childNode.nodeName == 'entry'):
+            # Locate the first 'entry' element and insert the new
+            # element before that element. 
+            if childNode.nodeName == 'entry':
+                if total == 0:
+                    self.feed.insertBefore(item, childNode)
                 total += 1
 
-        if (total > self.max_items):
+        # If this is the first element, then append it to the end.
+        if total == 0:
+            self.feed.appendChild(item)
+        if total > self.max_items:
             self.feed.removeChild(self.feed.lastChild)
 
     def write_output(self):
