Skip to content

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

Description

@aeomhs

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions