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:29:02 -0400 |
commit | 73663676af07ebc3fc1c6c528e208d40c49e170d (patch) | |
tree | 95d472cd659d8a6730979c52853adfb800b8f426 | |
parent | 4b13669a3d18750cd7a6592a19ae9357cdeb92f3 (diff) | |
download | sqlalchemy-73663676af07ebc3fc1c6c528e208d40c49e170d.tar.gz |
fix to the changelog system for when there's no change recs in the body
Conflicts:
doc/build/builder/changelog.py
-rw-r--r-- | doc/build/builder/changelog.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/build/builder/changelog.py b/doc/build/builder/changelog.py index 37df38ac8..811ad9434 100644 --- a/doc/build/builder/changelog.py +++ b/doc/build/builder/changelog.py @@ -149,6 +149,20 @@ class ChangeLogDirective(EnvDirective, Directive): self._parsed_content['released'])) else: 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 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) + return topsection |