Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firstPara is empty in Wiki page(Java). #27

Open
aeomhs opened this issue Jan 21, 2020 · 0 comments
Open

firstPara is empty in Wiki page(Java). #27

aeomhs opened this issue Jan 21, 2020 · 0 comments

Comments

@aeomhs
Copy link

aeomhs commented Jan 21, 2020

Issue

Running WikiNodeExample, nothing printed in the terminal.

Cause

I guess that maybe wiki page is changed. When I saw page's DOM's tree, there was another <p class='mw-empty-elt'> element. (And there is no text.)

image

Solved

So I changed index 0 to 1. And I can see paragraph same the book.

// ...
Elements paras = content.select("p");
Element firstPara = paras.get(0); // if change 0 -> 1, can see same result with book.
//...

Also, I think can solve this problem through change wiki page. But I am not sure how to fix. I ever not contributed wiki page. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant