Commits

Mike Bayer committed 5da1c96

fix to the changelog system for when there's no change recs in the body

  • Participants
  • Parent commits 1e2945d

Comments (0)

Files changed (1)

File doc/build/builder/changelog.py

             topsection.append(nodes.Text("no release date"))
 
         intro_para = nodes.paragraph('', '')
+        len_ = -1
         for len_, text in enumerate(self._parsed_content['text']):
             if ".. change::" in text:
                 break
-        if len_:
+
+        # if encountered any text elements that didn't start with
+        # ".. change::", those become the intro
+        if len_ > 0:
             self.state.nested_parse(self._parsed_content['text'][0:len_], 0,
                             intro_para)
             topsection.append(intro_para)