mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 15:28:35 +00:00
Fix handling of tables, take 2
This commit is contained in:
parent
3f251fc9c9
commit
5d0adb6d74
@ -165,6 +165,7 @@ def release(args):
|
||||
if first_section[0] == '\n':
|
||||
first_section.pop(0)
|
||||
|
||||
# Workaround GitHub-flavored markdown treating newlines as <br>.
|
||||
changes = ''.join(first_section)
|
||||
code_block = False
|
||||
stripped = False
|
||||
@ -177,7 +178,7 @@ def release(args):
|
||||
if code_block:
|
||||
changes += line
|
||||
continue
|
||||
if line == '\n' or re.match(r'^\s*|', line):
|
||||
if line == '\n' or re.match(r'^\s*\|', line):
|
||||
changes += line
|
||||
if stripped:
|
||||
changes += line
|
||||
|
Loading…
Reference in New Issue
Block a user