Skip to content

Parse <blockquote> tags for better quote detection - #2313

Merged
Hocuri merged 2 commits into
masterfrom
parse-blockquotes
Apr 7, 2021
Merged

Hocuri merged 2 commits into
masterfrom
parse-blockquotes

Conversation

@Hocuri

@Hocuri Hocuri commented Mar 23, 2021

Copy link
Copy Markdown
Collaborator

There probably won't be any merge conflicts with #2089, but it's probably better to wait, anyway.

@Hocuri
Hocuri force-pushed the parse-blockquotes branch from 5fb44c0 to b6a5a1c Compare April 5, 2021 13:16
@Hocuri
Hocuri changed the base branch from master to sqlx-next April 5, 2021 13:33
@Hocuri Hocuri mentioned this pull request Apr 6, 2021
9 tasks done
Base automatically changed from sqlx-next to master April 6, 2021 14:03
@Hocuri
Hocuri force-pushed the parse-blockquotes branch from b6a5a1c to a16de8c Compare April 6, 2021 15:34
@Hocuri
Hocuri requested review from flub, link2xt and r10s April 6, 2021 15:41
@Hocuri Hocuri changed the title Parse <blockquote> tags for better quote detection [WIP] Parse <blockquote> tags for better quote detection Apr 6, 2021
@Hocuri Hocuri changed the title [WIP] Parse <blockquote> tags for better quote detection Parse <blockquote> tags for better quote detection Apr 6, 2021
Comment thread src/dehtml.rs Outdated
/// Everything between <div name="quote"> and <div name="quoted-content"> is usually metadata
/// If this is > `0`, then we are inside a `<div name="quoted-content">`.
divs_since_quoted_content_div: u32,
/// All-Inkl just puts the quote into `<blockquote> </blockquote>`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment, and a link to the actual domain of All-Inkl (is it all-inkl.com?) is better put into test_allinkl_blockquote. Comment for the field does not describe what it contains. Is it the number of blockquotes nested inside a blockquote tag?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this to match the comment on divs_since_quote_div above, which says that it's GMX. But I put another comment into the test and expanded this comment here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

divs_since_quote_div also does not tell what this variable is for, it's just not part of this PR.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge this as-is, I just commented on the comment because the code LGTM :)

@Hocuri
Hocuri merged commit 179a2a5 into master Apr 7, 2021
@Hocuri
Hocuri deleted the parse-blockquotes branch April 7, 2021 16:45
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