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': 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