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

Fix highlighting of search results when the textLayer contains br-elements (PR 13257 follow-up, issue 13323) #13324

Merged
merged 1 commit into from May 2, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 2, 2021

Apparently we need to layout br-elements in the same exact way as the regular span-elements which contain the text-content.

Fixes #13323

@Snuffleupagus Snuffleupagus changed the title Fix highlighting of search results when the textLayer contains br-elements (PR 13323 follow-up, issue 13323) Fix highlighting of search results when the textLayer contains br-elements (PR 13257 follow-up, issue 13323) May 2, 2021
…-elements (PR 13257 follow-up, issue 13323)

Apparently we need to layout `br`-elements in the same *exact* way as the regular `span`-elements which contain the text-content.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/7f448ef54845c57/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 2, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7f448ef54845c57/output.txt

Total script time: 4.37 mins

Published

@calixteman
Copy link
Contributor

Both issues in #13323 are fixed thanks to this patch.

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for doing this.

@timvandermeij timvandermeij merged commit f081701 into mozilla:master May 2, 2021
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the textLayer-br-style branch May 2, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlight when searching can be misplaced
4 participants