From 5d0adb6d74dfd55be0c8b6b746f151a3f1d56220 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 29 Jun 2024 09:29:06 -0700 Subject: [PATCH] Fix handling of tables, take 2 --- support/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/manage.py b/support/manage.py index 10cd180f..e6ff290f 100755 --- a/support/manage.py +++ b/support/manage.py @@ -165,6 +165,7 @@ def release(args): if first_section[0] == '\n': first_section.pop(0) + # Workaround GitHub-flavored markdown treating newlines as
. 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