[PATCH v4] releasenotes: improve parsing around bullet points
Yuya Nishihara
yuya at tcha.org
Fri Jun 23 22:19:50 EDT 2017
On Fri, 23 Jun 2017 17:19:10 +0200, Rishabh Madan wrote:
> # HG changeset patch
> # User Rishabh Madan <rishabhmadan96 at gmail.com>
> # Date 1498230953 -7200
> # Fri Jun 23 17:15:53 2017 +0200
> # Node ID b6e6d8df88beb042f5a37123a0ea6a9b437f7755
> # Parent 4107eb8a5648ad31f7fb3e95bbc8999c73a94c49
> releasenotes: improve parsing around bullet points
Queued, thanks.
> @@ -226,16 +236,18 @@
> title)
>
> currentsection = name
> - paragraphs = gatherparagraphs(i)
> - if paragraphs:
> - notes.addnontitleditem(currentsection, paragraphs)
> + bullet_points = gatherparagraphsbullets(i)
> + if bullet_points:
> + for para in bullet_points:
> + notes.addnontitleditem(currentsection, para)
>
> - elif block['underline'] == '-': # sub-section
> - paragraphs = gatherparagraphs(i)
> -
> + elif block['underline'] == '-':
There seems no reason to remove "# sub-section" comment, so restored it.
More information about the Mercurial-devel
mailing list