Fix handling of tables, take 2

This commit is contained in:
Victor Zverovich 2024-06-29 09:29:06 -07:00
parent 3f251fc9c9
commit 5d0adb6d74

View File

@ -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