diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-27 18:25:47 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-27 18:25:47 -0400 |
| commit | 5da1c96c82ca376df10f7c7d77381259e071d420 (patch) | |
| tree | b0d6271c0d36376cfda1245a7f8799c863483d4f | |
| parent | 1e2945d26c126f0aad0dbe1c06fdcb62d3172597 (diff) | |
| download | sqlalchemy-5da1c96c82ca376df10f7c7d77381259e071d420.tar.gz | |
fix to the changelog system for when there's no change recs in the body
| -rw-r--r-- | doc/build/builder/changelog.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/build/builder/changelog.py b/doc/build/builder/changelog.py index f96fd559e..811ad9434 100644 --- a/doc/build/builder/changelog.py +++ b/doc/build/builder/changelog.py @@ -151,10 +151,14 @@ class ChangeLogDirective(EnvDirective, Directive): 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) |
