mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 11:14:41 +00:00
Fix formatting of release notes
This commit is contained in:
parent
dedc17c1c9
commit
84f6131825
@ -166,7 +166,7 @@ def release(args):
|
||||
first_section.pop(0)
|
||||
|
||||
# Workaround GitHub-flavored markdown treating newlines as <br>.
|
||||
changes = ''.join(first_section)
|
||||
changes = ''
|
||||
code_block = False
|
||||
stripped = False
|
||||
for line in first_section:
|
||||
@ -179,10 +179,10 @@ def release(args):
|
||||
changes += line
|
||||
continue
|
||||
if line == '\n' or re.match(r'^\s*\|.*', line):
|
||||
changes += line
|
||||
if stripped:
|
||||
changes += line
|
||||
changes += '\n'
|
||||
stripped = False
|
||||
changes += line
|
||||
continue
|
||||
if stripped:
|
||||
line = ' ' + line.lstrip()
|
||||
|
Loading…
Reference in New Issue
Block a user