# 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)):