mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-30 21:35:55 +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':
|
if first_section[0] == '\n':
|
||||||
first_section.pop(0)
|
first_section.pop(0)
|
||||||
|
|
||||||
|
# Workaround GitHub-flavored markdown treating newlines as <br>.
|
||||||
changes = ''.join(first_section)
|
changes = ''.join(first_section)
|
||||||
code_block = False
|
code_block = False
|
||||||
stripped = False
|
stripped = False
|
||||||
@ -177,7 +178,7 @@ def release(args):
|
|||||||
if code_block:
|
if code_block:
|
||||||
changes += line
|
changes += line
|
||||||
continue
|
continue
|
||||||
if line == '\n' or re.match(r'^\s*|', line):
|
if line == '\n' or re.match(r'^\s*\|', line):
|
||||||
changes += line
|
changes += line
|
||||||
if stripped:
|
if stripped:
|
||||||
changes += line
|
changes += line
|
||||||
|
Loading…
Reference in New Issue
Block a user