Closed HugoLaurencon closed 2 years ago
I've pushed a fix, but It needs more tests since it can alter behaviour for other use cases. Basically, deep extraction was not working when: 1) We start from a text node 2) There is no child node 3) There is a next node (the h1 tag in your case).
I've made a new release.
Hello, I am testing this toy example
which outputs
so the text node
this is a test
is not displayed.If instead I write
node.text(deep=False)
, now the textthis is a test
is displayed.This behavior is not present if I remove the
h1
tag and the textthis is a test
is displayed anyway, withdeep=True
ordeep=False
.Any idea why?