WARNING! Gitlab maintenance operation scheduled for Monday, 20 April between 12:00 and 14:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.
# Insert page break before "Scope" Heading1 and "History" Heading1
ifre.match(r'^1\s+Scope\s*',full_text):
insert_page_break_before_heading(para,full_text)
# Annex heading: "Annex A: Title" or "Annex A (informative): Title"
elif (match:=re.match(r'^(Annex\s[A-Z](?:\s*\((?:informative|normative|informative or normative|normative or informative)\))?:)\s*(.+)$',full_text,re.IGNORECASE))isnotNone:
# Annex heading: "Annex A: Title" or "Annex A (informative): Title" or "Annex: Title"
elif (match:=re.match(r'^(Annex\s[A-Z](?:\s*\((?:informative|normative|informative or normative|normative or informative)\))?:|Annex:\s*)\s*(.+)$',full_text,re.IGNORECASE))isnotNone: