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

[java] Replace wholeText() with NodeVisitor #369

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

kojiishi
Copy link
Collaborator

This patch replaces wholeText() implemented in #367 by a subclass of NodeVisitor.

Whether the wholeText() emits \n for <br> depends on the jsoup versions. To ensure that getText() always matches what resolve() does, this patch changes to its own logic.

@kojiishi kojiishi force-pushed the gettext-visitor branch 3 times, most recently from 525fcb6 to f5d1de8 Compare November 15, 2023 16:02
@kojiishi kojiishi marked this pull request as ready for review November 15, 2023 16:07
@kojiishi kojiishi requested a review from tushuhei November 15, 2023 16:07
This patch replaces `wholeText()` implemented in google#367 by a subclass of `NodeVisitor`.

Whether the `wholeText()` emits `\n` for `<br>` depends on the jsoup versions. To ensure that `getText()` always matches what `resolve()` does, this patch changes to its own logic.
@tushuhei tushuhei merged commit b84f482 into google:main Nov 15, 2023
13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants