Skip to content

Commit

Permalink
fix line split bug, trunc summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpassmore committed Sep 5, 2024
1 parent 476773c commit 2a53af3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions git/draft-release-notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,14 @@ def pull_enf_notes(self, comments):
if match:
for line in match.group(1).split('\n'):
parts = line.split(":")
if parts[0] == "group":
meta_data['group'] = parts[1].strip()
if parts[0] == "category":
meta_data['category'] = parts[1].strip()
if parts[0] == "summary":
meta_data['summary'] = parts[1].strip()
first = parts.pop(0)
remainder = ":".join(parts)
if first == "group":
meta_data['group'] = remainder.strip()
if first == "category":
meta_data['category'] = remainder.strip()
if first == "summary":
meta_data['summary'] = remainder.strip()
return meta_data

def as_oneline(self, category_listing, newafter=-1):
Expand Down

0 comments on commit 2a53af3

Please sign in to comment.