summaryrefslogtreecommitdiff
path: root/docutils/tools/dev
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-06-10 11:08:46 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-06-10 11:08:46 +0000
commit893829bf0b14a89e283ceded0acb2eb5c44ff3f8 (patch)
tree9f60f3e7859b2cbf51ad5cf13c99eb81a9e6225e /docutils/tools/dev
parent9e79a514f07b2a2a7e7e71cefb510750076a43e8 (diff)
downloaddocutils-893829bf0b14a89e283ceded0acb2eb5c44ff3f8.tar.gz
Fix `nodes.Node.findall()` for Text nodes.
As `nodes.Text` inherits from `str`, Text nodes with the same content are considered equal and ``nodes.Element.index(Text('sample'))`` may return a preceding Text node with content "sample". Therefore, Node.findall() must perform an additional test for identity with the start node. Fixes bug #448. Thanks to Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9067 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools/dev')
0 files changed, 0 insertions, 0 deletions