From 66a8f2841576de6ec0e33bb4d390c3b3e1140177 Mon Sep 17 00:00:00 2001 From: ryanamannion Date: Mon, 22 May 2023 15:05:18 -0400 Subject: [PATCH] get children anywhere for all_runs --- docx/text/insrun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docx/text/insrun.py b/docx/text/insrun.py index b8a3d71dd..7d809ae3e 100644 --- a/docx/text/insrun.py +++ b/docx/text/insrun.py @@ -57,7 +57,7 @@ def rpr(self, value): @property def all_runs(self): - return [Run(r, self) for r in self._i.xpath('./w:r')] + return [Run(r, self) for r in self._i.xpath('.//w:r')] class _Text(object):