Skip to content

Commit

Permalink
Fix bug where migrate-config would replace an already multiline contr…
Browse files Browse the repository at this point in the history
…ibutor with extra space.
  • Loading branch information
jaraco committed Apr 17, 2024
1 parent 316d33e commit 7461d08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jaraco/develop/migrate-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def tweak(config):
"""
Tweak the syntax some for easier merging with skeleton.
"""
# convert single-line authors/maintainers to multiline
config = re.sub(
r'^(authors|maintainers) = \[(.*?)\]',
r'^(authors|maintainers) = \[(\{.*?\})\]',
r'\1 = [\n\t\2,\n]',
config,
flags=re.MULTILINE | re.DOTALL,
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+cb111e22.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where migrate-config would replace an already multiline contributor with extra space.

0 comments on commit 7461d08

Please sign in to comment.