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.
# Take all elements except pPr (usually only runs and hyperlinks) in this paragraph and append them to the previous paragraph. New run starting by <w:br/>
previous_para=para.getprevious()
ifprevious_paraisnotNone:
if (previous_para.xpath('./w:pPr/w:pStyle[@w:val="SourceCode"]',namespaces=ns)):
# Take all elements except pPr (usually only runs and hyperlinks) in this paragraph and append them to the previous paragraph. New run starting by <w:br/>
previous_para=para.getprevious()
ifprevious_paraisnotNone:
if (previous_para.xpath('./w:pPr/w:pStyle[@w:val="SourceCode"]',namespaces=ns)):
# Take all elements except pPr (usually only runs and hyperlinks) in this paragraph and append them to the previous paragraph. New run starting by <w:br/>
previous_para=para.getprevious()
ifprevious_paraisnotNone:
if (previous_para.xpath('./w:pPr/w:pStyle[@w:val="SourceCode"]',namespaces=ns)):